mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -05: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 " +
|
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.
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user