diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2020-02-21 21:58:08 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2020-02-24 20:44:01 (GMT) |
commit | f1c34443b7fa828150e4e13b0dea3c5fbd29b6eb (patch) | |
tree | c0df7e902631d7fb7105dd653a314ca53ff0a450 /Source | |
parent | 1dec35942215817ff2e7535239a89bc239abed16 (diff) | |
download | CMake-f1c34443b7fa828150e4e13b0dea3c5fbd29b6eb.zip CMake-f1c34443b7fa828150e4e13b0dea3c5fbd29b6eb.tar.gz CMake-f1c34443b7fa828150e4e13b0dea3c5fbd29b6eb.tar.bz2 |
CTest: Improve error reporting with bad working directory for tests
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CTest/cmCTestMultiProcessHandler.cxx | 2 | ||||
-rw-r--r-- | Source/CTest/cmCTestRunTest.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx index bee7165..758ea57 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.cxx +++ b/Source/CTest/cmCTestMultiProcessHandler.cxx @@ -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. diff --git a/Source/CTest/cmCTestRunTest.cxx b/Source/CTest/cmCTestRunTest.cxx index f0a3af1..ec54960 100644 --- a/Source/CTest/cmCTestRunTest.cxx +++ b/Source/CTest/cmCTestRunTest.cxx @@ -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; } |