From 913e6e43880d3df3cbcc167dd46a0913f4bc7a22 Mon Sep 17 00:00:00 2001 From: Harald van Dijk Date: Tue, 2 Sep 2025 17:48:51 +0100 Subject: [PATCH] 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. --- test_conformance/api/test_kernels.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test_conformance/api/test_kernels.cpp b/test_conformance/api/test_kernels.cpp index 1f81d9d9..d7b30462 100644 --- a/test_conformance/api/test_kernels.cpp +++ b/test_conformance/api/test_kernels.cpp @@ -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);