Fix test_api negative_set_read_write_image_arg. (#2510)

When the implementation does not have image support, the functions used
are not required to be defined and the test should be skipped.
This commit is contained in:
Harald van Dijk
2025-09-02 17:48:51 +01:00
committed by GitHub
parent 8e125bd2e8
commit 913e6e4388

View File

@@ -807,6 +807,8 @@ REGISTER_TEST(negative_set_read_write_image_arg)
constexpr cl_image_format format = { CL_RGBA, CL_UNSIGNED_INT8 };
const int size_dim = 128;
PASSIVE_REQUIRE_IMAGE_SUPPORT(device);
// Setup the test
error = create_single_kernel_helper(context, &program, nullptr, 2,
test_kernels, nullptr);