The following issue has been SUBMITTED. ====================================================================== https://cmake.org/Bug/view.php?id=15874 ====================================================================== Reported By: Kevin Wojniak Assigned To: ====================================================================== Project: CMake Issue ID: 15874 Category: CTest Reproducibility: always Severity: feature Priority: normal Status: new ====================================================================== Date Submitted: 2015-12-08 17:29 EST Last Modified: 2015-12-08 17:29 EST ====================================================================== Summary: Add command line flag to force ctest to exit with non-zero code when no tests are run Description: If there is an error with how tests are configured, and ctest is run, it just outputs "No tests were found" and exits with code 0. For scripts that depend on ctest exit code reflecting whether tests succeeded or not, this fails.
A flag should be set that forces a non-zero exit code when no tests are run. Otherwise the only way to handle this is to parse "No tests were found" but that is a hack and is not always possible. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2015-12-08 17:29 Kevin Wojniak New Issue ====================================================================== -- 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