Commit 3480c252 authored by Ken Martin's avatar Ken Martin
Browse files

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

parent 6f5a5361
......@@ -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 )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment