summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestMultiProcessHandler.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-02-21 21:53:48 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-02-24 20:44:01 (GMT)
commit1dec35942215817ff2e7535239a89bc239abed16 (patch)
tree09a2fadf63e67e5e7e744e0972c5dc25198223e4 /Source/CTest/cmCTestMultiProcessHandler.cxx
parent8d6ea4401c8fc4c18d070378fc5284b93c311d3a (diff)
downloadCMake-1dec35942215817ff2e7535239a89bc239abed16.zip
CMake-1dec35942215817ff2e7535239a89bc239abed16.tar.gz
CMake-1dec35942215817ff2e7535239a89bc239abed16.tar.bz2
Refactor: Require detail when calling cmCTestRunTest::StartFailure()
Diffstat (limited to 'Source/CTest/cmCTestMultiProcessHandler.cxx')
-rw-r--r--Source/CTest/cmCTestMultiProcessHandler.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx
index 37679b9..bee7165 100644
--- a/Source/CTest/cmCTestMultiProcessHandler.cxx
+++ b/Source/CTest/cmCTestMultiProcessHandler.cxx
@@ -197,7 +197,7 @@ bool cmCTestMultiProcessHandler::StartTestProcess(int test)
this->LockResources(test);
if (!this->TestsHaveSufficientResources[test]) {
- testRun->StartFailure("Insufficient resources");
+ testRun->StartFailure("Insufficient resources", "Failed to start");
this->FinishTestProcess(testRun, false);
return false;
}
@@ -205,8 +205,9 @@ bool cmCTestMultiProcessHandler::StartTestProcess(int test)
cmWorkingDirectory workdir(this->Properties[test]->Directory);
if (workdir.Failed()) {
testRun->StartFailure("Failed to change working directory to " +
- this->Properties[test]->Directory + " : " +
- std::strerror(workdir.GetLastResult()));
+ this->Properties[test]->Directory + " : " +
+ std::strerror(workdir.GetLastResult()),
+ "Failed to start");
} else {
if (testRun->StartTest(this->Completed, this->Total)) {
// Ownership of 'testRun' has moved to another structure.