summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-16 19:18:42 (GMT)
committerBrad King <brad.king@kitware.com>2019-01-17 17:01:07 (GMT)
commit7370b02c36b45bcd92b6c5bb7cc65ecff75b9b2b (patch)
tree8e59900befca0eed85a6e0ac0e2c831165fd92a1 /Tests
parent62fec84ad7b44b7c54130e9eb3686f4fbc22672e (diff)
downloadCMake-7370b02c36b45bcd92b6c5bb7cc65ecff75b9b2b.zip
CMake-7370b02c36b45bcd92b6c5bb7cc65ecff75b9b2b.tar.gz
CMake-7370b02c36b45bcd92b6c5bb7cc65ecff75b9b2b.tar.bz2
CTest: Teach --show-only=json-v1 to filter out not-available tests
Avoid exposing the internal special value that we use to track tests not available in the tested configuration. This also prevents clients from having to do the filtering themselves.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/CTestCommandLine/RunCMakeTest.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/CTestCommandLine/RunCMakeTest.cmake b/Tests/RunCMake/CTestCommandLine/RunCMakeTest.cmake
index 52002ce..82bd963 100644
--- a/Tests/RunCMake/CTestCommandLine/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CTestCommandLine/RunCMakeTest.cmake
@@ -201,6 +201,7 @@ function(run_ShowOnly)
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;;\")
+ add_test(ShowOnlyNotAvailable NOT_AVAILABLE)
")
run_cmake_command(show-only_json-v1 ${CMAKE_CTEST_COMMAND} --show-only=json-v1)
endfunction()