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.
5 $ rm -rf temp_testdir-catch-signal
6 $ mkdir temp_testdir-catch-signal
8 $ cd temp_testdir-catch-signal
12 p Check that we notice when SEGV is raised
13 ! expect signal SIGSEGV
16 p Check that we return the expected return value on SEGV
19 $ ../tesh --enable-coverage
21 > Test suite from stdin
22 > [(stdin):1] perl segfault.pl
23 > Test suite `(stdin)': NOK (<(stdin):1> got signal SIGSEGV)
24 > <(stdin):1> No output so far.
27 $ rm -rf temp_testdir-catch-signal