summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-11-10 15:55:04 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-11-10 15:55:04 (GMT)
commit3480c252a30462a98f7267ec9b69c293b9d6e614 (patch)
tree4acf42d528f851095efe4b50e58035a3de2bc40c /Source
parent6f5a53618a73b1d0437c7915a8aa0ed2b04d6eda (diff)
downloadCMake-3480c252a30462a98f7267ec9b69c293b9d6e614.zip
CMake-3480c252a30462a98f7267ec9b69c293b9d6e614.tar.gz
CMake-3480c252a30462a98f7267ec9b69c293b9d6e614.tar.bz2
ENH: change the pass regexp so that it overrides the return value
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index 478e32e..9752755 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -783,7 +783,9 @@ void cmCTestTestHandler::ProcessDirectory(std::vector<cmStdString> &passed,
}
}
- if (res == cmsysProcess_State_Exited && retVal == 0 && !forceFail)
+ if (res == cmsysProcess_State_Exited &&
+ (retVal == 0 || it->m_RequiredRegularExpressions.size()) &&
+ !forceFail)
{
cmCTestLog(m_CTest, HANDLER_OUTPUT, " Passed");
if ( it->m_WillFail )