2 # This suite builds and uses a program raising a segfault, ie a program dying
3 # of SIGSEV. tesh must detect this condition and report the issue.
6 $ cmake -E remove_directory temp_testdir-catch-signal
8 $ mkdir temp_testdir-catch-signal
10 $ cd temp_testdir-catch-signal
15 p Check that we notice when SEGV is raised
16 ! expect signal SIGSEGV
19 p Check that we return the expected return value on SEGV
23 > Test suite from stdin
24 > [(stdin):1] perl segfault.pl
25 > Test suite `(stdin)': NOK (<(stdin):1> got signal SIGSEGV)
30 $ cmake -E remove_directory temp_testdir-catch-signal