summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-16 20:42:31 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-16 20:42:31 (GMT)
commit5e5d8d85e1f5b55424edcc76cd38a490d987ff53 (patch)
tree39b6910097bae4b5f0e772512a856bea94d525a5 /Source
parentf7ddfbe1fd70d1153439d350ac1e6223aef0fdfc (diff)
downloadCMake-5e5d8d85e1f5b55424edcc76cd38a490d987ff53.zip
CMake-5e5d8d85e1f5b55424edcc76cd38a490d987ff53.tar.gz
CMake-5e5d8d85e1f5b55424edcc76cd38a490d987ff53.tar.bz2
When running the same ctest as the one we are testing, make sure to run as separate process
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index 51c5a31..3c0f808 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -1046,6 +1046,7 @@ cmLocalUnixMakefileGenerator3
ctest += "ctest";
ctest += cmSystemTools::GetExecutableExtension();
ctest = this->Convert(ctest.c_str(),START_OUTPUT,SHELL);
+ ctest += " --force-new-ctest-process";
}
else
{
@@ -1061,9 +1062,8 @@ cmLocalUnixMakefileGenerator3
std::vector<std::string> no_depends;
std::vector<std::string> commands;
this->AppendEcho(commands, "Running tests...");
- std::string cmd = ctest;
- cmd += " $(ARGS)";
- commands.push_back(cmd);
+ ctest += " $(ARGS)";
+ commands.push_back(ctest);
this->WriteMakeRule(makefileStream,
"Special rule to drive testing with ctest.",
"test", no_depends, commands);