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

View File

@@ -207,7 +207,7 @@ bool cmCTestMultiProcessHandler::StartTestProcess(int test)
testRun->StartFailure("Failed to change working directory to " +
this->Properties[test]->Directory + " : " +
std::strerror(workdir.GetLastResult()),
"Failed to start");
"Failed to change working directory");
} else {
if (testRun->StartTest(this->Completed, this->Total)) {
// Ownership of 'testRun' has moved to another structure.

View File

@@ -326,7 +326,7 @@ bool cmCTestRunTest::StartAgain(size_t completed)
this->StartFailure("Failed to change working directory to " +
this->TestProperties->Directory + " : " +
std::strerror(workdir.GetLastResult()),
"Failed to start");
"Failed to change working directory");
return true;
}