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.
16 $ gcc -o segfault segfault.c
18 ! expect return $EUNXPSIG
20 $ ../tesh --log='log.thresh:info tesh.fmt:%m%n'
21 > Test unit from stdin
22 > [stdin:1] ./segfault
23 > [stdin:1] `./segfault' : NOK (unexpected signal `SIGSEGV' caught)
24 > Output of <stdin:1> so far:
26 > Test unit `(stdin)' : NOK (unexpected signal caught)