From e881a534c13d75cf086d53ebbf9fd82889e12e6b Mon Sep 17 00:00:00 2001 From: Fraser Cormack Date: Wed, 22 May 2024 18:28:14 +0100 Subject: [PATCH] [CTS] Fix UR_CONFORMANCE_ENABLE_MATCH_FILES=OFF When configured without match files, the CTS was trying to run a command and its arguments as a single command, as it was represented by a single string variable. It needs to be a single string in the default case - when building with UR_CONFORMANCE_ENABLE_MATCH_FILES=ON - as that command string is passed off to another command via a flag, so it must be seen by the shell as one item. While definitely not *nice*, this is the simplest fix I could think of which preserves the behaviour of the (more important, tested) 'default' case. --- test/conformance/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test/conformance/CMakeLists.txt b/test/conformance/CMakeLists.txt index 31048cce28..9a80c5345e 100644 --- a/test/conformance/CMakeLists.txt +++ b/test/conformance/CMakeLists.txt @@ -25,6 +25,7 @@ function(add_test_adapter name adapter) WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) else() + separate_arguments(TEST_COMMAND) add_test(NAME ${TEST_NAME} COMMAND ${TEST_COMMAND} DEPENDS ${TEST_TARGET_NAME}