mirror of
https://github.com/reactos/CMake.git
synced 2024-12-04 01:22:28 +00:00
CTest: Report lines matched by launchers
Since launchers show the entire stderr/stdout for a command and only skip it if all of the lines are suppressed, it can be hard to tell if individual suppressions are working. Mark up the output reported to CDash with a prefix for each line indicating whether it was a matched or suppressed warning. Lines that are suppressed are prefixed with `[CTest: warning suppressed]` and lines that match the warning expression are prefixed with `[CTest: warning matched]`. This should make it easier for people to add suppressions as they will know what they need to match and what they have already suppressed. This is an issue because if there is more than one warning in a single compiler output you have to suppress all of them before it will go away.
This commit is contained in:
parent
af9708881f
commit
1c61d240dd
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user