2 Commits

Author SHA1 Message Date
Romaric Jodin
50ba8c8c1c fix typo in negative_context.cpp (#2611)
The message is not corresponding to what is actually tested.
2026-02-04 08:11:24 -08:00
Michael Rizkalla
6774fc1dc3 Add negative tests for context API functions (#2494)
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.

Signed-off-by: Michael Rizkalla <michael.rizkalla@arm.com>
2026-01-13 17:43:13 +00:00