Skip to content

WILL_FAIL does not understand abort/exceptions

Take the simple program:

#include <cstdlib>
int main(){ abort(); return 0; }

This runs, aborts, and gives some error code (134 on my system). If add this as a test executable and add a test, CTest reports this as failing. If add the property WILL_FAIL, CTest still reports this as failing, i.e. an aborting c++ program will always cause Ctest to report a failure no matter what.

cmake 3.16.3, Mac OS X

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information