summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-08-08 13:22:37 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-08-08 13:22:42 (GMT)
commit165778c8090401b05999688f7805c95b10bc85b0 (patch)
treefa0d525995d03613bf202cd6f16686337fd11a89 /Source
parente3bcf72df8ca77d2db42866b4d85fd230dea9b32 (diff)
parent1c61d240ddd5fe493427a10ad571b662ded97eb8 (diff)
downloadCMake-165778c8090401b05999688f7805c95b10bc85b0.zip
CMake-165778c8090401b05999688f7805c95b10bc85b0.tar.gz
CMake-165778c8090401b05999688f7805c95b10bc85b0.tar.bz2
Merge topic 'ctest-launch-match-details'
1c61d240 CTest: Report lines matched by launchers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1084
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmCTestLaunch.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestLaunch.cxx b/Source/CTest/cmCTestLaunch.cxx
index 5b21351..9be8696 100644
--- a/Source/CTest/cmCTestLaunch.cxx
+++ b/Source/CTest/cmCTestLaunch.cxx
@@ -508,7 +508,11 @@ void cmCTestLaunch::DumpFileToXML(cmXMLWriter& xml, std::string const& fname)
if (MatchesFilterPrefix(line)) {
continue;
}
-
+ if (this->Match(line, this->RegexWarningSuppress)) {
+ line = "[CTest: warning suppressed] " + line;
+ } else if (this->Match(line, this->RegexWarning)) {
+ line = "[CTest: warning matched] " + line;
+ }
xml.Content(sep);
xml.Content(line);
sep = "\n";