CTest: Improve error reporting with bad working directory for tests

This commit is contained in:
Kyle Edwards
2020-02-21 16:58:08 -05:00
parent 1dec359422
commit f1c34443b7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -207,7 +207,7 @@ bool cmCTestMultiProcessHandler::StartTestProcess(int test)
testRun->StartFailure("Failed to change working directory to " + testRun->StartFailure("Failed to change working directory to " +
this->Properties[test]->Directory + " : " + this->Properties[test]->Directory + " : " +
std::strerror(workdir.GetLastResult()), std::strerror(workdir.GetLastResult()),
"Failed to start"); "Failed to change working directory");
} else { } else {
if (testRun->StartTest(this->Completed, this->Total)) { if (testRun->StartTest(this->Completed, this->Total)) {
// Ownership of 'testRun' has moved to another structure. // Ownership of 'testRun' has moved to another structure.
+1 -1
View File
@@ -326,7 +326,7 @@ bool cmCTestRunTest::StartAgain(size_t completed)
this->StartFailure("Failed to change working directory to " + this->StartFailure("Failed to change working directory to " +
this->TestProperties->Directory + " : " + this->TestProperties->Directory + " : " +
std::strerror(workdir.GetLastResult()), std::strerror(workdir.GetLastResult()),
"Failed to start"); "Failed to change working directory");
return true; return true;
} }