diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2013-07-27 19:40:25 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2013-07-27 20:05:47 (GMT) |
commit | c0756b6dd67b7f2e113dafde398cec597537068c (patch) | |
tree | 45e4af7a5feb264ed5a2af6137f9560d70ad3972 /Source/CTest/cmCTestTestHandler.cxx | |
parent | 46558d290be1760828714545f41afae17b0c71c9 (diff) | |
download | CMake-c0756b6dd67b7f2e113dafde398cec597537068c.zip CMake-c0756b6dd67b7f2e113dafde398cec597537068c.tar.gz CMake-c0756b6dd67b7f2e113dafde398cec597537068c.tar.bz2 |
Revert "CTest: fix pre and post test commands with spaces" (#13887)
This reverts commit 6187876dea89618044e200808bcae75a18bd4043.
It was actually possible before to have paths with spaces in them, the spaces
just need to be quoted. This way spaces will work as argument separators.
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestTestHandler.cxx | 5 |
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 ) { |