On 12/09/2012 22:39, Mathias Gaunard wrote:
I'd be content with just interpreting a return value of 77 as a "Not
Run" status; this is a fairly trivial change that should work well in
any existing setups.

I don't think it is really needed to make things as complex as in the
bug report. Any intelligence, if required, can go in the test command
itself.

Simple patch attached.
This fulfills my needs well enough and I've just configured my cross-compilation test servers to use it.



diff --git a/Source/CTest/cmCTestRunTest.cxx b/Source/CTest/cmCTestRunTest.cxx
index 5eabf3f..f8693a5 100644
--- a/Source/CTest/cmCTestRunTest.cxx
+++ b/Source/CTest/cmCTestRunTest.cxx
@@ -210,6 +210,11 @@ bool cmCTestRunTest::EndTest(size_t completed, size_t total, bool started)
       this->TestResult.Status = cmCTestTestHandler::COMPLETED;
       cmCTestLog(this->CTest, HANDLER_OUTPUT, "   Passed  " );
       }
+    else if(retVal == 77)
+      {
+      this->TestResult.Status = cmCTestTestHandler::NOT_RUN;
+      cmCTestLog(this->CTest, HANDLER_OUTPUT, "***Not Run ");
+      }
     else
       {
       this->TestResult.Status = cmCTestTestHandler::FAILED;
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to