A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'mc++'
[simgrid.git]
/
tools
/
tesh
/
catch-signal.tesh
diff --git
a/tools/tesh/catch-signal.tesh
b/tools/tesh/catch-signal.tesh
index
0d718c6
..
64d37e8
100644
(file)
--- a/
tools/tesh/catch-signal.tesh
+++ b/
tools/tesh/catch-signal.tesh
@@
-2,27
+2,28
@@
# 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.
# 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
+$ rm -rf temp_testdir
-catch-signal
+$ mkdir temp_testdir
-catch-signal
-$ cd temp_testdir
+$ cd temp_testdir
-catch-signal
< #include <stdlib.h>
< int main(void) {
< char *A=NULL;
< *A = 1;
< }
< #include <stdlib.h>
< int main(void) {
< char *A=NULL;
< *A = 1;
< }
-$
cat >
segfault.c
+$
mkfile
segfault.c
-$
g
cc -o segfault segfault.c
+$ cc -o segfault segfault.c
! expect return 15
< $ ./segfault
! expect return 15
< $ ./segfault
-$ ../tesh --log='log.thresh:info tesh.fmt:%m%n'
+$ ../tesh --enable-coverage --log='log.thresh:info tesh.fmt:%m%n'
+> Enable coverage
> Test suite from stdin
> Test suite from stdin
-> [
stdin
:1] ./segfault
-> Test suite `(stdin)': NOK (<
stdin
:1> got signal SIGSEGV)
-> Output of <
stdin:1> so far:
+> [
(stdin)
:1] ./segfault
+> Test suite `(stdin)': NOK (<
(stdin)
:1> got signal SIGSEGV)
+> Output of <
(stdin):1> so far:
> ||
$ cd ..
> ||
$ cd ..
-$ rm -rf temp_testdir
+$ rm -rf temp_testdir
-catch-signal