Commit 0cbf5574 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

BUG: Fix reporting of path and full command when test program was not found

parent ab817f2e
......@@ -407,6 +407,7 @@ void cmCTestTestHandler::ProcessDirectory(std::vector<cmStdString> &passed,
cmSystemTools::ChangeDirectory(it->m_Directory.c_str());
}
cres.m_Name = testname;
cres.m_Path = it->m_Directory.c_str();
if(m_TestsToRun.size() &&
std::find(m_TestsToRun.begin(), m_TestsToRun.end(), cnt) == m_TestsToRun.end())
{
......@@ -448,6 +449,7 @@ void cmCTestTestHandler::ProcessDirectory(std::vector<cmStdString> &passed,
args[1].Value.c_str() << "\n";
if ( !m_CTest->GetShowOnly() )
{
cres.m_FullCommandLine = actualCommand;
m_TestResults.push_back( cres );
failed.push_back(testname);
continue;
......@@ -611,9 +613,9 @@ void cmCTestTestHandler::ProcessDirectory(std::vector<cmStdString> &passed,
}
}
}
cres.m_Output = output;
cres.m_ReturnValue = retVal;
cres.m_Path = it->m_Directory.c_str();
cres.m_CompletionStatus = "Completed";
m_TestResults.push_back( cres );
}
......
Markdown is supported
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