summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-11-08 18:03:37 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-11-08 18:03:37 (GMT)
commit43c8923f149f254b84d1a18f92e07962a0119fe7 (patch)
tree4f3946fe7e36cc4ed8863749bf99418b85d971bf /Source
parent1a5fe3047ede1fe2657101e79e1738176fe053a0 (diff)
downloadCMake-43c8923f149f254b84d1a18f92e07962a0119fe7.zip
CMake-43c8923f149f254b84d1a18f92e07962a0119fe7.tar.gz
CMake-43c8923f149f254b84d1a18f92e07962a0119fe7.tar.bz2
BUG: try to fix crash
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index 91c8a82..e2d96e3 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/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;
}