summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestBuildAndTestHandler.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-12-18 17:27:59 (GMT)
committerBrad King <brad.king@kitware.com>2008-12-18 17:27:59 (GMT)
commit4c725d1e0ef60f55d7c6b628d9fcd4961f4f2115 (patch)
tree4e2547f8b96428ba8fdf7626a5e0297ae7f12f3d /Source/CTest/cmCTestBuildAndTestHandler.cxx
parent1e2c7a7bb387393a6101372764bb9d5fb1c104d4 (diff)
downloadCMake-4c725d1e0ef60f55d7c6b628d9fcd4961f4f2115.zip
CMake-4c725d1e0ef60f55d7c6b628d9fcd4961f4f2115.tar.gz
CMake-4c725d1e0ef60f55d7c6b628d9fcd4961f4f2115.tar.bz2
ENH: Minor readability improvement in CTest output
When ctest --build-and-test runs the --test-command its output did not quote the arguments of the command being tested making it difficult to read. This adds the quotes. This also changes the wording of the failure case to not sound like CTest could not run the executable when in fact it ran and returned failure.
Diffstat (limited to 'Source/CTest/cmCTestBuildAndTestHandler.cxx')
-rw-r--r--Source/CTest/cmCTestBuildAndTestHandler.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestBuildAndTestHandler.cxx b/Source/CTest/cmCTestBuildAndTestHandler.cxx
index 92d8270..a35aacf 100644
--- a/Source/CTest/cmCTestBuildAndTestHandler.cxx
+++ b/Source/CTest/cmCTestBuildAndTestHandler.cxx
@@ -359,10 +359,10 @@ int cmCTestBuildAndTestHandler::RunCMakeAndTest(std::string* outstring)
out << "Run test in directory: " << this->BuildRunDir << "\n";
cmSystemTools::ChangeDirectory(this->BuildRunDir.c_str());
}
- out << "Running test executable: " << fullPath << " ";
+ out << "Running test command: \"" << fullPath << "\"";
for(k=0; k < this->TestCommandArgs.size(); ++k)
{
- out << this->TestCommandArgs[k] << " ";
+ out << " \"" << this->TestCommandArgs[k] << "\"";
}
out << "\n";
@@ -386,7 +386,7 @@ int cmCTestBuildAndTestHandler::RunCMakeAndTest(std::string* outstring)
if(runTestRes != cmsysProcess_State_Exited || retval != 0)
{
- out << "Failed to run test command: " << testCommand[0] << "\n";
+ out << "Test command failed: " << testCommand[0] << "\n";
retval = 1;
}