#! ./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.

$ cmake -E remove_directory temp_testdir-bg-set-signal
$ mkdir temp_testdir-bg-set-signal

$ cd temp_testdir-bg-set-signal

< kill 'SEGV', $$;
$ mkfile segfault.pl

! expect signal SIGSEGV
$ perl segfault.pl

$ cd ..
$ cmake -E remove_directory temp_testdir-bg-set-signal
