diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2011-03-18 08:38:34 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2011-03-18 13:08:33 (GMT) |
commit | fcf3208ac10942344d4e7302ca8351758ba26978 (patch) | |
tree | 88d8525e71645e7483095c8170520c2196b7c49b /Source | |
parent | 96453cea6ae9d41e83d8148539acc614e6316abd (diff) | |
download | CMake-fcf3208ac10942344d4e7302ca8351758ba26978.zip CMake-fcf3208ac10942344d4e7302ca8351758ba26978.tar.gz CMake-fcf3208ac10942344d4e7302ca8351758ba26978.tar.bz2 |
CTest: catch warning output of Apache Maven
Some samples of things that got unnoticed by our nightly builds:
$ JAVA_HOME= mvn
Warning: JAVA_HOME environment variable is not set.
...
$ mvn
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
...
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CTest/cmCTestBuildHandler.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestBuildHandler.cxx b/Source/CTest/cmCTestBuildHandler.cxx index 9678ac4..86bd85d 100644 --- a/Source/CTest/cmCTestBuildHandler.cxx +++ b/Source/CTest/cmCTestBuildHandler.cxx @@ -93,6 +93,7 @@ static const char* cmCTestErrorMatches[] = { ": No such file or directory", ": Invalid argument", "^The project cannot be built\\.", + "^\\[ERROR\\]", 0 }; @@ -119,7 +120,7 @@ static const char* cmCTestWarningMatches[] = { "^\"[^\"]+\", line [0-9]+: [Ww](arning|arnung)", "([^:]+): warning[ \\t]*[0-9]+[ \\t]*:", "^(Warning|Warnung) ([0-9]+):", - "^(Warning|Warnung) ", + "^(Warning|Warnung)[ :]", "WARNING: ", "([^ :]+) : warning", "([^:]+): warning", @@ -131,6 +132,7 @@ static const char* cmCTestWarningMatches[] = { "\".*\", line [0-9]+: remark\\([0-9]*\\):", "cc-[0-9]* CC: REMARK File = .*, Line = [0-9]*", "^CMake Warning.*:", + "^\\[WARNING\\]", 0 }; |