From 88ac1e22a36b17c11435f408b64486bbca89a60e Mon Sep 17 00:00:00 2001 From: Andreas Beckmann Date: Tue, 8 Apr 2025 07:32:27 +0200 Subject: [PATCH] expect the spirv tests to fail on 32-bit architectures Gbp-Pq: Name spirv-tests.patch --- examples/example1/CMakeLists.txt | 3 +++ tests/spirv/CMakeLists.txt | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/examples/example1/CMakeLists.txt b/examples/example1/CMakeLists.txt index 7924cb2..feb13fe 100644 --- a/examples/example1/CMakeLists.txt +++ b/examples/example1/CMakeLists.txt @@ -37,6 +37,9 @@ add_test(NAME "examples/example1_dot_product" COMMAND "example1") if (ENABLE_SPIRV) add_test(NAME "examples/example1_spirv" COMMAND "example1" "v") list(APPEND SPIREX "examples/example1_spirv") + if(HOST_DEVICE_ADDRESS_BITS EQUAL 32) + set_tests_properties("examples/example1_spirv" PROPERTIES WILL_FAIL 1) + endif() endif() set(PROPS) diff --git a/tests/spirv/CMakeLists.txt b/tests/spirv/CMakeLists.txt index 4cf9717..e9f287e 100644 --- a/tests/spirv/CMakeLists.txt +++ b/tests/spirv/CMakeLists.txt @@ -43,4 +43,8 @@ set_tests_properties( "spirv/printf" LABELS "internal;spirv" DEPENDS "pocl_version_check") +if(HOST_DEVICE_ADDRESS_BITS EQUAL 32) + set_tests_properties("spirv/printf" PROPERTIES WILL_FAIL 1) +endif() + endif() -- 2.30.2