From 54105f5757eaa6f303ce3733e9431a2670e17aed Mon Sep 17 00:00:00 2001 From: Nick Terrell Date: Mon, 7 Dec 2020 11:55:44 -0800 Subject: [PATCH] [cmake] Quote environment variables for tests Fix the quoting for the invocation of `playtests.sh`. --- build/cmake/tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/cmake/tests/CMakeLists.txt b/build/cmake/tests/CMakeLists.txt index a66040ec..9bc9ec41 100644 --- a/build/cmake/tests/CMakeLists.txt +++ b/build/cmake/tests/CMakeLists.txt @@ -86,7 +86,7 @@ add_test(NAME zstreamtest COMMAND zstreamtest ${ZSTD_ZSTREAM_FLAGS}) # AddTestFlagsOption(ZSTD_PLAYTESTS_FLAGS "--test-large-data" "Semicolon-separated list of flags to pass to the playTests.sh test") -add_test(NAME playTests COMMAND sh -c "${TESTS_DIR}/playTests.sh" ${ZSTD_PLAYTESTS_FLAGS}) +add_test(NAME playTests COMMAND sh -c "\"${TESTS_DIR}/playTests.sh\" ${ZSTD_PLAYTESTS_FLAGS}") if (ZSTD_BUILD_PROGRAMS) set_property(TEST playTests APPEND PROPERTY ENVIRONMENT "ZSTD_BIN=$"