Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill tesh2 out of the source tree
[simgrid.git] / tools / tesh2 / examples / catch-signal.tesh
diff --git a/tools/tesh2/examples/catch-signal.tesh b/tools/tesh2/examples/catch-signal.tesh
deleted file mode 100644 (file)
index 5a11512..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#! ./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
-$ mkdir temp_testdir
-
-$ cd temp_testdir
-< #include <stdlib.h>
-< int main(void) {
-<   char *A=NULL;
-<   *A = 1;
-< }
-$ cat > segfault.c
-
-$ gcc -o segfault segfault.c
-
-! expect return $EUNXPSIG
-< $ ./segfault
-$ ../tesh --log='log.thresh:info tesh.fmt:%m%n'
-> Test unit from stdin
-> [stdin:1] ./segfault
-> [stdin:1] `./segfault' : NOK (unexpected signal `SIGSEGV' caught)
-> Output of <stdin:1> so far: 
-> ||
-> Test unit `(stdin)' : NOK (unexpected signal caught)
-
-$ cd ..
-$ rm -rf temp_testdir