Skip to content

Commit

Permalink
Fix inverted logic in if condition.
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Ashbaugh <ben.ashbaugh@intel.com>
  • Loading branch information
paulfradgley and bashbaug authored May 20, 2024
1 parent 9dde828 commit b18acad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_conformance/events/test_event_dependencies.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ int test_event_enqueue_wait_for_events_run_test(
error = clGetDeviceIDs(platform, CL_DEVICE_TYPE_ALL, 2, two_device_ids,
&number_returned);
test_error(error, "clGetDeviceIDs for CL_DEVICE_TYPE_ALL failed.");
if (number_returned >= 2)
if (number_returned < 2)
{
log_info("Failed to obtain two devices. Test can not run.\n");
free(two_device_ids);
Expand Down

0 comments on commit b18acad

Please sign in to comment.