mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
CTest: Improve error reporting with bad working directory for tests
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user