summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ctest_memcheck/testUndefinedBehaviorSanitizer.cmake
diff options
context:
space:
mode:
authorJamie Snape <jamie.snape@kitware.com>2017-01-23 15:50:38 (GMT)
committerJamie Snape <jamie.snape@kitware.com>2017-01-23 15:50:38 (GMT)
commite116f2a5de330ca4dd413e29db62ed39805b2c06 (patch)
tree1839549bc5a964155d71da543c06ba769d4d2428 /Tests/RunCMake/ctest_memcheck/testUndefinedBehaviorSanitizer.cmake
parent522e1588ec7bfdbc86199cc1991e706ebafc02fd (diff)
downloadCMake-e116f2a5de330ca4dd413e29db62ed39805b2c06.zip
CMake-e116f2a5de330ca4dd413e29db62ed39805b2c06.tar.gz
CMake-e116f2a5de330ca4dd413e29db62ed39805b2c06.tar.bz2
ctest_memcheck: Fix sanitizers when MemoryCheckSanitizerOptions is empty
Diffstat (limited to 'Tests/RunCMake/ctest_memcheck/testUndefinedBehaviorSanitizer.cmake')
-rw-r--r--Tests/RunCMake/ctest_memcheck/testUndefinedBehaviorSanitizer.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/RunCMake/ctest_memcheck/testUndefinedBehaviorSanitizer.cmake b/Tests/RunCMake/ctest_memcheck/testUndefinedBehaviorSanitizer.cmake
index 8ef3c0a..ba6122d 100644
--- a/Tests/RunCMake/ctest_memcheck/testUndefinedBehaviorSanitizer.cmake
+++ b/Tests/RunCMake/ctest_memcheck/testUndefinedBehaviorSanitizer.cmake
@@ -1,8 +1,8 @@
-# this file simulates a program that has been built with undefined behavior
-# sanitizer options
+# this file simulates a program that has been built with
+# UndefinedBehaviorSanitizer options
message("UBSAN_OPTIONS = [$ENV{UBSAN_OPTIONS}]")
-string(REGEX REPLACE ".*log_path=\"([^\"]*)\".*" "\\1" LOG_FILE "$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