OpenCL-CTS icon indicating copy to clipboard operation
OpenCL-CTS copied to clipboard

Add negative tests for context API functions

Open MichaelRizkalla-arm opened this issue 4 months ago • 0 comments

This PR adds negative tests for the following API functions:

  • clCreateContext
  • clCreateContextFromType
  • clRetainContext
  • clReleaseContext
  • clSetContextDestructorCallback

Also, define a new macro test_object_failure_ret to test for an expected error code and the returned object is NULL as a result of a failure.

MichaelRizkalla-arm avatar Aug 19 '25 08:08 MichaelRizkalla-arm