summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-06-30 15:28:56 (GMT)
committerBrad King <brad.king@kitware.com>2010-06-30 15:42:08 (GMT)
commit3b26fa13c42e8cf26b5b7dda57e4a3aac5f1cb11 (patch)
tree0fd6c0e0d253a24172f8004925603dfcb6b6de46 /Source/kwsys/CMakeLists.txt
parentb84220b28716ef7bf3395edf4386a1a038ec9495 (diff)
downloadCMake-3b26fa13c42e8cf26b5b7dda57e4a3aac5f1cb11.zip
CMake-3b26fa13c42e8cf26b5b7dda57e4a3aac5f1cb11.tar.gz
CMake-3b26fa13c42e8cf26b5b7dda57e4a3aac5f1cb11.tar.bz2
KWSys: Optionally suppress consistent test failures
Add option KWSYS_TEST_BOGUS_FAILURES that can be set by a containing project or in the CMake cache to list tests known to fail consistently on a buggy system.
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r--Source/kwsys/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index bdf6613..bcc7a96 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -1125,5 +1125,11 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
SET_TESTS_PROPERTIES(kwsys.testFail PROPERTIES MEASUREMENT "Some Key=Some Value")
MESSAGE(STATUS "GET_TEST_PROPERTY returned: ${wfv}")
ENDIF(COMMAND SET_TESTS_PROPERTIES AND COMMAND GET_TEST_PROPERTY AND KWSYS_STANDALONE)
+
+ # Suppress known consistent failures on buggy systems.
+ IF(KWSYS_TEST_BOGUS_FAILURES)
+ SET_TESTS_PROPERTIES(${KWSYS_TEST_BOGUS_FAILURES} PROPERTIES WILL_FAIL ON)
+ ENDIF()
+
ENDIF(BUILD_TESTING)
ENDIF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)