Browse Source

CTest: Recognize Intel errors without space before colon (#12627)

Fix the regex meant to match errors of the form:

 C:\some\dir\source.cpp(17): catastrophic error: could not open source file "some_header.h"

to make the space between ')' and ':' optional.
Brad King 14 years ago
parent
commit
56f29f48c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/CTest/cmCTestBuildHandler.cxx

+ 1 - 1
Source/CTest/cmCTestBuildHandler.cxx

@@ -57,7 +57,7 @@ static const char* cmCTestErrorMatches[] = {
   "^ild:([ \\t])*\\(undefined symbol\\)",
   "([^ :]+) : (error|fatal error|catastrophic error)",
   "([^:]+): (Error:|error|undefined reference|multiply defined)",
-  "([^:]+)\\(([^\\)]+)\\) : (error|fatal error|catastrophic error)",
+  "([^:]+)\\(([^\\)]+)\\) ?: (error|fatal error|catastrophic error)",
   "^fatal error C[0-9]+:",
   ": syntax error ",
   "^collect2: ld returned 1 exit status",