summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CTestCommandLine/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-08-22 19:00:38 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-22 19:07:43 (GMT)
commit5778880d20a7fb78ee6144b52d93ff371df54a41 (patch)
tree57668333354add43aa27de661a63af97b6c5b989 /Tests/RunCMake/CTestCommandLine/RunCMakeTest.cmake
parent40bbe50e23c06232ccf1c49589dde5dd84e1ac31 (diff)
downloadCMake-5778880d20a7fb78ee6144b52d93ff371df54a41.zip
CMake-5778880d20a7fb78ee6144b52d93ff371df54a41.tar.gz
CMake-5778880d20a7fb78ee6144b52d93ff371df54a41.tar.bz2
CTest: Fix --show-only=json-v1 output with REQUIRED_FILES property
Fixes: #19629
Diffstat (limited to 'Tests/RunCMake/CTestCommandLine/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/CTestCommandLine/RunCMakeTest.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/RunCMake/CTestCommandLine/RunCMakeTest.cmake b/Tests/RunCMake/CTestCommandLine/RunCMakeTest.cmake
index d524f41..b7f9a37 100644
--- a/Tests/RunCMake/CTestCommandLine/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CTestCommandLine/RunCMakeTest.cmake
@@ -200,7 +200,11 @@ function(run_ShowOnly)
file(MAKE_DIRECTORY "${RunCMake_TEST_BINARY_DIR}")
file(WRITE "${RunCMake_TEST_BINARY_DIR}/CTestTestfile.cmake" "
add_test(ShowOnly \"${CMAKE_COMMAND}\" -E echo)
- set_tests_properties(ShowOnly PROPERTIES WILL_FAIL true _BACKTRACE_TRIPLES \"file1;1;add_test;file0;;\")
+ set_tests_properties(ShowOnly PROPERTIES
+ WILL_FAIL true
+ REQUIRED_FILES RequiredFileDoesNotExist
+ _BACKTRACE_TRIPLES \"file1;1;add_test;file0;;\"
+ )
add_test(ShowOnlyNotAvailable NOT_AVAILABLE)
")
run_cmake_command(show-only_human ${CMAKE_CTEST_COMMAND} --show-only=human)