diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2021-07-28 13:43:04 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2021-07-28 13:58:28 (GMT) |
commit | 26170ea3069238bfb287d6304cd2f65e1c3a7387 (patch) | |
tree | 09194a58abaee92019cd3c878fc36621341ec808 /Tests/RunCMake/ctest_test/test.cmake.in | |
parent | f7cf69e34a1607e8ea2b6d10fef6a6058377c24e (diff) | |
download | CMake-26170ea3069238bfb287d6304cd2f65e1c3a7387.zip CMake-26170ea3069238bfb287d6304cd2f65e1c3a7387.tar.gz CMake-26170ea3069238bfb287d6304cd2f65e1c3a7387.tar.bz2 |
CTest: Reset multi-options to persistent multi-options
44ad3f0b added multi-options to CTest, but didn't reset them,
causing ctest_test() to fail if it was run multiple times with
different label arguments. Reset the multi-options.
Fixes: #22485
Diffstat (limited to 'Tests/RunCMake/ctest_test/test.cmake.in')
-rw-r--r-- | Tests/RunCMake/ctest_test/test.cmake.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Tests/RunCMake/ctest_test/test.cmake.in b/Tests/RunCMake/ctest_test/test.cmake.in index 50b936d..36b1dbd 100644 --- a/Tests/RunCMake/ctest_test/test.cmake.in +++ b/Tests/RunCMake/ctest_test/test.cmake.in @@ -15,4 +15,9 @@ set(ctest_test_args "@CASE_CTEST_TEST_ARGS@") ctest_start(Experimental) ctest_configure() ctest_build() -ctest_test(${ctest_test_args}) +if("@CASE_NAME@" STREQUAL "TestChangingLabels") + ctest_test(${ctest_test_args} INCLUDE_LABEL "^a$") + ctest_test(${ctest_test_args} INCLUDE_LABEL "^b$") +else() + ctest_test(${ctest_test_args}) +endif() |