Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' into v3.20-expose-simgrid-jni
[simgrid.git] / tools / tesh / bg-set-signal.tesh
1 #!/usr/bin/env tesh
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.
4
5 ! output ignore
6 $ cmake -E remove_directory temp_testdir-bg-set-signal
7 $ mkdir temp_testdir-bg-set-signal
8
9 $ cd temp_testdir-bg-set-signal
10
11 < kill 'SEGV', $$;
12 $ mkfile segfault.pl
13
14 ! expect signal SIGSEGV
15 $ perl segfault.pl
16
17 $ cd ..
18
19 ! output ignore
20 $ cmake -E remove_directory temp_testdir-bg-set-signal