summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestMemcheck/testUndefinedBehaviorSanitizer.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-12-16 18:50:30 (GMT)
committerBrad King <brad.king@kitware.com>2014-12-18 15:12:15 (GMT)
commit1651dc96683282c0af8ef47973db9afa950d6bde (patch)
treec90f83059671a3d627ff2a1220ee3a1acf9487ef /Tests/CTestTestMemcheck/testUndefinedBehaviorSanitizer.cmake
parent1c8129795ac482b36a67d0b7131f2bbd6ad04a54 (diff)
downloadCMake-1651dc96683282c0af8ef47973db9afa950d6bde.zip
CMake-1651dc96683282c0af8ef47973db9afa950d6bde.tar.gz
CMake-1651dc96683282c0af8ef47973db9afa950d6bde.tar.bz2
Tests: Move CTestTestMemcheck cases into a RunCMake.CTestMemcheck test
The CTestTestMemcheck test cases all try to check the ctest output with a regular expression. They fail intermittently due to ordering of the portions of the output that come from stdout and stderr being mixed. Convert all the test cases to use the RunCMake infrastructure to match stdout and stderr separately.
Diffstat (limited to 'Tests/CTestTestMemcheck/testUndefinedBehaviorSanitizer.cmake')
-rw-r--r--Tests/CTestTestMemcheck/testUndefinedBehaviorSanitizer.cmake21
1 files changed, 0 insertions, 21 deletions
diff --git a/Tests/CTestTestMemcheck/testUndefinedBehaviorSanitizer.cmake b/Tests/CTestTestMemcheck/testUndefinedBehaviorSanitizer.cmake
deleted file mode 100644
index 8ef3c0a..0000000
--- a/Tests/CTestTestMemcheck/testUndefinedBehaviorSanitizer.cmake
+++ /dev/null
@@ -1,21 +0,0 @@
-# this file simulates a program that has been built with undefined behavior
-# sanitizer options
-
-message("UBSAN_OPTIONS = [$ENV{UBSAN_OPTIONS}]")
-string(REGEX REPLACE ".*log_path=\"([^\"]*)\".*" "\\1" LOG_FILE "$ENV{UBSAN_OPTIONS}")
-message("LOG_FILE=[${LOG_FILE}]")
-
-# if we are not asked to simulate address sanitizer don't do it
-if(NOT "$ENV{UBSAN_OPTIONS}]" MATCHES "simulate_sanitizer.1")
- return()
-endif()
-# clear the log file
-file(REMOVE "${LOG_FILE}.2343")
-
-# create an error like undefined behavior santizer creates;
-# these names come from ubsan_diag.cc and ubsan_handlers.cc
-# in llvm
-
-file(APPEND "${LOG_FILE}.2343"
-"<unknown>: runtime error: left shift of negative value -256
-")