summaryrefslogtreecommitdiffstats
path: root/Source/cmaketest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmaketest.cxx')
-rw-r--r--Source/cmaketest.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/cmaketest.cxx b/Source/cmaketest.cxx
index d1372d8..28f9b94 100644
--- a/Source/cmaketest.cxx
+++ b/Source/cmaketest.cxx
@@ -116,10 +116,7 @@ int main (int argc, char *argv[])
{
std::cerr << "Error: cmaketest does not have a valid MAKEPROGRAM\n";
}
- makeCommand = cmSystemTools::EscapeSpaces(makeCommand.c_str());
-#if defined(_WIN32) && !defined(__CYGWIN__)
- cmSystemTools::ConvertToWindowsSlashes(makeCommand);
-#endif
+ makeCommand = cmSystemTools::ConvertToOutputPath(makeCommand.c_str());
std::string lowerCaseCommand = makeCommand;
cmSystemTools::LowerCase(lowerCaseCommand);
@@ -246,10 +243,7 @@ int main (int argc, char *argv[])
cmSystemTools::ChangeDirectory(cwd.c_str());
return 1;
}
- fullPath = cmSystemTools::EscapeSpaces(fullPath.c_str());
-#if defined(_WIN32) && !defined(__CYGWIN__)
- cmSystemTools::ConvertToWindowsSlashes(fullPath);
-#endif
+ fullPath = cmSystemTools::ConvertToOutputPath(fullPath.c_str());
std::cout << "Running test executable: " << fullPath.c_str() << "\n";
int ret = 0;
if (!cmSystemTools::RunCommand(fullPath.c_str(), output, ret, true))