summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/RunCMake.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-12-16 21:11:40 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-12-31 15:34:34 (GMT)
commit73ae888506c89b8c0619905f4c19b79116afb514 (patch)
treec7af7e40b479536d725266181876cefb735947a9 /Tests/RunCMake/RunCMake.cmake
parentc2445d3dfd837cd2e372061f5545054317be110a (diff)
downloadCMake-73ae888506c89b8c0619905f4c19b79116afb514.zip
CMake-73ae888506c89b8c0619905f4c19b79116afb514.tar.gz
CMake-73ae888506c89b8c0619905f4c19b79116afb514.tar.bz2
RunCMake: Expect empty output by default.
Expect tests to specify stderr content if it is present. Fix the CMP0019 test, which has only been testing the WARN status until now. Specify in the CommandLine and FPHSA tests that content is at least one character. Set policies in the Language and CheckModules tests, which have empty test output, modulo unrelated policies on some platforms.
Diffstat (limited to 'Tests/RunCMake/RunCMake.cmake')
-rw-r--r--Tests/RunCMake/RunCMake.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/RunCMake.cmake b/Tests/RunCMake/RunCMake.cmake
index 7b1a5b2..7b3eda7 100644
--- a/Tests/RunCMake/RunCMake.cmake
+++ b/Tests/RunCMake/RunCMake.cmake
@@ -25,6 +25,13 @@ function(run_cmake test)
unset(expect_std${o})
endif()
endforeach()
+ if (NOT expect_stderr)
+ if (NOT RunCMake_DEFAULT_stderr)
+ set(RunCMake_DEFAULT_stderr "^$")
+ endif()
+ set(expect_stderr ${RunCMake_DEFAULT_stderr})
+ endif()
+
if (NOT RunCMake_TEST_SOURCE_DIR)
set(RunCMake_TEST_SOURCE_DIR "${top_src}")
endif()