summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestMemcheck/testAddressSanitizer.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CTestTestMemcheck/testAddressSanitizer.cmake')
-rw-r--r--Tests/CTestTestMemcheck/testAddressSanitizer.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/CTestTestMemcheck/testAddressSanitizer.cmake b/Tests/CTestTestMemcheck/testAddressSanitizer.cmake
index a359e28..a073151 100644
--- a/Tests/CTestTestMemcheck/testAddressSanitizer.cmake
+++ b/Tests/CTestTestMemcheck/testAddressSanitizer.cmake
@@ -5,6 +5,10 @@ message("ASAN_OPTIONS = [$ENV{ASAN_OPTIONS}]")
string(REGEX REPLACE ".*log_path=\"([^\"]*)\".*" "\\1" LOG_FILE "$ENV{ASAN_OPTIONS}")
message("LOG_FILE=[${LOG_FILE}]")
+# if we are not asked to simulate address sanitizer don't do it
+if(NOT "$ENV{ASAN_OPTIONS}]" MATCHES "simulate_sanitizer.1")
+ return()
+endif()
# clear the log file
file(REMOVE "${LOG_FILE}.2343")