]> AND Public Git Repository - simgrid.git/blobdiff - tools/tesh/bg-set-signal.tesh
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill some blank lines, #### lines, ...
[simgrid.git] / tools / tesh / bg-set-signal.tesh
index 681e844ea236db437870e5022ef50bcfb3003412..2179eaa9737f846f86c46074fa0e74b802f4e0e2 100644 (file)
@@ -2,20 +2,15 @@
 # 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
-$ mkdir temp_testdir
+$ cmake -E remove_directory temp_testdir-bg-set-signal
+$ mkdir temp_testdir-bg-set-signal
 
-$ cd temp_testdir
-< #include <stdlib.h>
-< int main(void) {
-<   char *A=NULL;
-<   *A = 1;
-< }
-$ cat > segfault.c
+$ cd temp_testdir-bg-set-signal
+< kill 'SEGV', $$;
+$ mkfile segfault.pl
 
-$ gcc -o segfault segfault.c
 ! expect signal SIGSEGV
-& ./segfault
-$ sleep 1
+& perl segfault.pl
+
 $ cd ..
-$ rm -rf temp_testdir
+$ cmake -E remove_directory temp_testdir-bg-set-signal