Cleanup corrections for get_program_info_mult_devices test (#2305)

This commit is contained in:
Marcin Hajder
2025-04-01 17:46:18 +02:00
committed by GitHub
parent b6924adfb2
commit 004bc4a82d

View File

@@ -791,7 +791,7 @@ REGISTER_TEST(get_program_info_mult_devices)
if (program == nullptr) if (program == nullptr)
{ {
log_error("ERROR: Unable to create reference program!\n"); log_error("ERROR: Unable to create reference program!\n");
return -1; return TEST_FAIL;
} }
err = clGetProgramInfo(program, CL_PROGRAM_NUM_DEVICES, sizeof(num_devices), err = clGetProgramInfo(program, CL_PROGRAM_NUM_DEVICES, sizeof(num_devices),
@@ -820,7 +820,7 @@ REGISTER_TEST(get_program_info_mult_devices)
} }
} }
test_error_fail( test_error_fail(
!found, "Unexpected result returned by CL_CONTEXT_DEVICES query"); !found, "Unexpected result returned by CL_PROGRAM_DEVICES query");
} }
return TEST_PASS; return TEST_PASS;