Browse Source

BUG: try to fix crash

Bill Hoffman 18 years ago
parent
commit
43c8923f14
1 changed files with 8 additions and 2 deletions
  1. 8 2
      Source/CTest/cmCTestTestHandler.cxx

+ 8 - 2
Source/CTest/cmCTestTestHandler.cxx

@@ -677,8 +677,14 @@ void cmCTestTestHandler::ProcessOneTest(cmCTestTestProperties *it,
       if ( !found )
         { 
         reason = "Required regular expression not found.";
-        reason +=  "Regex=[";
-        reason += passIt->second;
+        reason +=  "Regex=["; 
+        for ( passIt = it->RequiredRegularExpressions.begin();
+            passIt != it->RequiredRegularExpressions.end();
+            ++ passIt )
+          {
+          reason += passIt->second;
+          reason += "\n";
+          }
         reason += "]";
         forceFail = true;
         }