CTestTestMemcheck: Tolerate trailing "==..." lines from valgrind

This commit is contained in:
Brad King 2013-08-16 09:39:52 -04:00
parent f169f48f93
commit 8ea62fdf30
1 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,8 @@ endif()
# When this entire test runs under coverage or memcheck tools
# they may add output to the end, so match known cases:
# - Bullseye adds a "BullseyeCoverage..." line.
set(other_tool_output "((${guard_malloc_output}BullseyeCoverage)[^\n]*\n)*")
# - Valgrind memcheck may add extra "==..." lines.
set(other_tool_output "((${guard_malloc_output}BullseyeCoverage|==)[^\n]*\n)*")
string(REPLACE "\r\n" "\n" ctest_and_tool_outputs "
1/1 MemCheck #1: RunCMake \\.+ Passed +[0-9]+\\.[0-9]+ sec