On 08/18/2015 04:30 AM, A. Klitzing wrote:
> Yeah, you are right. If ctest itself fails it should return non-zero.
[snip]
> ctest will also return non-zero because a testsuite "failed".

Right, it should not do the latter.

Looking through recent history the cleanup of return code
computation I mentioned in an earlier response does not appear
to be there.  I think similar discussion previously led to the
need for such cleanup but it looks like it was never actually
done.

The error and return code handling within CTest is fairly messy
due to historical evolution and incremental expansion of the
ways in which tests can be run.  As a start, one could look
at making ctest_test() not affect the return code just due to
a test failure.

-Brad
-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

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

Reply via email to