summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ctest_memcheck/testMemorySanitizer.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/testMemorySanitizer.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/testMemorySanitizer.cmake')
-rw-r--r--Tests/RunCMake/ctest_memcheck/testMemorySanitizer.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/ctest_memcheck/testMemorySanitizer.cmake b/Tests/RunCMake/ctest_memcheck/testMemorySanitizer.cmake
index c87af9a..3b3ac22 100644
--- a/Tests/RunCMake/ctest_memcheck/testMemorySanitizer.cmake
+++ b/Tests/RunCMake/ctest_memcheck/testMemorySanitizer.cmake
@@ -1,8 +1,8 @@
-# this file simulates a program that has been built with thread sanitizer
+# this file simulates a program that has been built with MemorySanitizer
# options
message("MSAN_OPTIONS = [$ENV{MSAN_OPTIONS}]")
-string(REGEX REPLACE ".*log_path=\"([^\"]*)\".*" "\\1" LOG_FILE "$ENV{MSAN_OPTIONS}")
+string(REGEX REPLACE ".*log_path=\'([^\']*)\'.*" "\\1" LOG_FILE "$ENV{MSAN_OPTIONS}")
message("LOG_FILE=[${LOG_FILE}]")
# if we are not asked to simulate address sanitizer don't do it