Просмотр исходного кода

CTest: Improve error reporting with bad working directory for tests

Kyle Edwards 6 лет назад
Родитель
Сommit
f1c34443b7
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      Source/CTest/cmCTestMultiProcessHandler.cxx
  2. 1 1
      Source/CTest/cmCTestRunTest.cxx

+ 1 - 1
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.

+ 1 - 1
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;
   }