ENH: change the pass regexp so that it overrides the return value

This commit is contained in:
Ken Martin 2005-11-10 10:55:04 -05:00
parent 6f5a53618a
commit 3480c252a3
1 changed files with 3 additions and 1 deletions

View File

@ -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 )