[CMake] Core-dumping CTest tests that fail

Rainer Poisel rainer.poisel at gmail.com
Wed Jan 31 05:37:41 EST 2018


Hello,

I have a few CTest tests that fail (e. g. SEGFAULT) or timeout on
Linux from time to time. The tests are performed in a Continuous
Integration (CI) environment and I would like to simplify the analysis
in case a test fails.

Is there a way to make failing CTest tests to dump their core? In my
CI I would then invoke gdb automatically to print a call-stack of all
involved threads.

Thanks and regards,
  Rainer


More information about the CMake mailing list