X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c1fa53426d4f4db5c1fe697d915d30247fd5d09a..b69c3463223ed1207861d7a9b0ec0a06064696ca:/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 index 1740613257..0000000000 --- a/tools/tesh2/examples/catch-signal.tesh +++ /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 -< 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 so far: -> || -> Test unit `stdin': NOK ( unexpected signal caught) - -$ cd .. -$ rm -rf temp_testdir