From f1c34443b7fa828150e4e13b0dea3c5fbd29b6eb Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Fri, 21 Feb 2020 16:58:08 -0500 Subject: CTest: Improve error reporting with bad working directory for tests --- Source/CTest/cmCTestMultiProcessHandler.cxx | 2 +- 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; } -- cgit v0.12