summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestMemcheck/testLeakSanitizer.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-28 14:35:54 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-07-28 14:35:54 (GMT)
commit0f06bb52baafca335d495a14de5a942fae8dffe8 (patch)
tree26dfd118f1512af6707fe75b3e7cb3dacf3b8049 /Tests/CTestTestMemcheck/testLeakSanitizer.cmake
parent2699ac5ef727c824e22dc515149529783d8b9a8f (diff)
parent5d40d88e0026824e237938a9e771206220857034 (diff)
downloadCMake-0f06bb52baafca335d495a14de5a942fae8dffe8.zip
CMake-0f06bb52baafca335d495a14de5a942fae8dffe8.tar.gz
CMake-0f06bb52baafca335d495a14de5a942fae8dffe8.tar.bz2
Merge topic 'sanitizer_handle_more_pids'
5d40d88e Handle more than one process with sanitizer errors.
Diffstat (limited to 'Tests/CTestTestMemcheck/testLeakSanitizer.cmake')
-rw-r--r--Tests/CTestTestMemcheck/testLeakSanitizer.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/CTestTestMemcheck/testLeakSanitizer.cmake b/Tests/CTestTestMemcheck/testLeakSanitizer.cmake
index d0e38ce..02030be 100644
--- a/Tests/CTestTestMemcheck/testLeakSanitizer.cmake
+++ b/Tests/CTestTestMemcheck/testLeakSanitizer.cmake
@@ -11,6 +11,7 @@ endif()
# clear the log file
file(REMOVE "${LOG_FILE}.2343")
+file(REMOVE "${LOG_FILE}.2344")
# create an error of each type of thread santizer
# these names come from tsan_report.cc in llvm
@@ -24,6 +25,12 @@ Direct leak of 4360 byte(s) in 1 object(s) allocated from:
#1 0x4823b4 in main /home/kitware/msan/memcheck.cxx:12
#2 0x7fa72bee476c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226
+SUMMARY: AddressSanitizer: 4436 byte(s) leaked in 2 allocation(s).
+")
+file(APPEND "${LOG_FILE}.2342"
+"=================================================================
+==25308==ERROR: LeakSanitizer: detected memory leaks
+
Direct leak of 76 byte(s) in 1 object(s) allocated from:
#0 0x46c669 in operator new[](unsigned long) (/home/kitware/msan/a.out+0x46c669)
#1 0x4821b8 in foo() /home/kitware/msan/memcheck.cxx:4