diff --git a/test_conformance/extensions/cl_khr_semaphore/test_semaphores_negative_create.cpp b/test_conformance/extensions/cl_khr_semaphore/test_semaphores_negative_create.cpp index b95bc40b8..30daf6c33 100644 --- a/test_conformance/extensions/cl_khr_semaphore/test_semaphores_negative_create.cpp +++ b/test_conformance/extensions/cl_khr_semaphore/test_semaphores_negative_create.cpp @@ -590,7 +590,7 @@ struct CreateInvalidOperation : public SemaphoreTestBase semaphore_second = clCreateSemaphoreWithPropertiesKHR(context, sema_2_props, &err); test_failure_error( - err, CL_INVALID_DEVICE, + err, CL_INVALID_OPERATION, "Unexpected clCreateSemaphoreWithPropertiesKHR return"); return CL_SUCCESS;