#! ./tesh
# This suite builds and uses a program raising a segfault, ie a program dying
# of SIGSEV. tesh must detect this condition and report the issue.

$ rm -rf temp_testdir-set-signal
$ mkdir temp_testdir-set-signal

$ cd temp_testdir-set-signal
< #include <stdlib.h>
< int main(void) {
<   char *A=NULL;
<   *A = 1;
< }
$ mkfile segfault.c

$ gcc -o segfault segfault.c
! expect signal SIGSEGV
$ ./segfault
$ cd ..
$ rm -rf temp_testdir-set-signal
