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
Convert to C++, and call get_pid() directly.
[simgrid.git]
/
tools
/
tesh
/
catch-timeout.tesh
diff --git
a/tools/tesh/catch-timeout.tesh
b/tools/tesh/catch-timeout.tesh
index
ace1b50
..
a246c16
100644
(file)
--- a/
tools/tesh/catch-timeout.tesh
+++ b/
tools/tesh/catch-timeout.tesh
@@
-1,15
+1,12
@@
-#!
./
tesh
+#!
/usr/bin/env
tesh
-# This suite must be functional because we changed the timeout value to 1
0
+# This suite must be functional because we changed the timeout value to 1
# before sleeping 6 secs.
! expect return 3
< ! timeout 1
< $ sleep 6
# before sleeping 6 secs.
! expect return 3
< ! timeout 1
< $ sleep 6
-> Enable coverage
> Test suite from stdin
> [(stdin):2] sleep 6
> Test suite from stdin
> [(stdin):2] sleep 6
-> <(stdin):2> timeouted. Kill the process.
> Test suite `(stdin)': NOK (<(stdin):2> timeout after 1 sec)
> Test suite `(stdin)': NOK (<(stdin):2> timeout after 1 sec)
-> <(stdin):2> No output so far.
-$ ./tesh --enable-coverage
+$ ${bindir:=.}/tesh