[cmake-developers] [CMake 0015874]: Add command line flag to force ctest to exit with non-zero code when no tests are run
Mantis Bug Tracker
mantis at public.kitware.com
Tue Dec 8 17:29:27 EST 2015
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
======================================================================
More information about the cmake-developers
mailing list