diff options
Diffstat (limited to 'Source/CTest/cmCTestRunScriptCommand.cxx')
-rw-r--r-- | Source/CTest/cmCTestRunScriptCommand.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestRunScriptCommand.cxx b/Source/CTest/cmCTestRunScriptCommand.cxx index 5df84bb..abb2e48 100644 --- a/Source/CTest/cmCTestRunScriptCommand.cxx +++ b/Source/CTest/cmCTestRunScriptCommand.cxx @@ -27,11 +27,17 @@ bool cmCTestRunScriptCommand::InitialPass( return true; } + bool np = false; + unsigned int i = 0; + if (args[i] == "NEW_PROCESS") + { + np = true; + i++; + } // run each script - unsigned int i; - for (i = 0; i < args.size(); ++i) + for (; i < args.size(); ++i) { - cmCTestScriptHandler::RunScript(this->CTest, args[i].c_str()); + cmCTestScriptHandler::RunScript(this->CTest, args[i].c_str(), !np); } return true; } |