summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestTestHandler.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-21 20:07:33 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-21 20:07:33 (GMT)
commit0cbf55745a6562a27552826b95628dd6e09e6cbf (patch)
treece60ed15190176cfe2ad52eb9dd8fc05fb8a6a02 /Source/CTest/cmCTestTestHandler.cxx
parentab817f2e8108614947d7c559ff1bc970d02cbbc4 (diff)
downloadCMake-0cbf55745a6562a27552826b95628dd6e09e6cbf.zip
CMake-0cbf55745a6562a27552826b95628dd6e09e6cbf.tar.gz
CMake-0cbf55745a6562a27552826b95628dd6e09e6cbf.tar.bz2
BUG: Fix reporting of path and full command when test program was not found
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.cxx')
-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 59e1a6d..e6c8aef 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -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 );
}