summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestMemcheck/testUndefinedBehaviorSanitizer.cmake
diff options
context:
space:
mode:
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
-")