Skip to content

Commit

Permalink
Corrected test_assert condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-goras-mobica committed Jul 11, 2024
1 parent 9023a0c commit a5e5780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_conformance/api/test_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ int test_get_platform_ids(cl_device_id deviceID, cl_context context, cl_command_
log_error("clGetDeviceIDs must return at least one device\n");
total_errors++;
}
test_assert_error(num_devices > 1,
test_assert_error(num_devices >= 1,
"clGetDeviceIDs must return at least one device");
devices = (cl_device_id *)malloc(num_devices*sizeof(cl_device_id));
memset(devices, 0, sizeof(cl_device_id)*num_devices);
Expand Down

0 comments on commit a5e5780

Please sign in to comment.