summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-07-29 13:55:27 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-07-29 13:55:27 (GMT)
commit63728df6e5f5a4af095d824fc88ee7bdb405e097 (patch)
tree0184f04c2b5b5c647b7d84928448c2a3cc44715c /Source
parent1b9aa694981da5e8dfa231dc888c1cd7b4f84a2f (diff)
parentc0756b6dd67b7f2e113dafde398cec597537068c (diff)
downloadCMake-63728df6e5f5a4af095d824fc88ee7bdb405e097.zip
CMake-63728df6e5f5a4af095d824fc88ee7bdb405e097.tar.gz
CMake-63728df6e5f5a4af095d824fc88ee7bdb405e097.tar.bz2
Merge topic 'memcheck_pre_post_args'
c0756b6 Revert "CTest: fix pre and post test commands with spaces" (#13887)
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index 0508448..7a3edb5 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -1302,10 +1302,9 @@ int cmCTestTestHandler::ExecuteCommands(std::vector<cmStdString>& vec)
for ( it = vec.begin(); it != vec.end(); ++it )
{
int retVal = 0;
- std::string cmd = cmSystemTools::ConvertToOutputPath(it->c_str());
- cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT, "Run command: " << cmd
+ cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT, "Run command: " << *it
<< std::endl);
- if ( !cmSystemTools::RunSingleCommand(cmd.c_str(), 0, &retVal, 0,
+ if ( !cmSystemTools::RunSingleCommand(it->c_str(), 0, &retVal, 0,
cmSystemTools::OUTPUT_MERGE
/*this->Verbose*/) || retVal != 0 )
{