X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/72a105702165975d1702e64af7d28b60eb311672..5e7ffafe86f9a1468bb19ec9c40a68f8eebf6d2e:/tools/tesh2/examples/catch-timeout.tesh diff --git a/tools/tesh2/examples/catch-timeout.tesh b/tools/tesh2/examples/catch-timeout.tesh index 445c2565fe..8a16fb5459 100644 --- a/tools/tesh2/examples/catch-timeout.tesh +++ b/tools/tesh2/examples/catch-timeout.tesh @@ -1,9 +1,15 @@ -#! ./tesh - -# This suite must be functional because we changed the timeout value to 10 -# before sleeping 6 secs. - -! expect return $ECMDTIMEDOUT -< ! timeout 1 -< $ sleep 6 -$ ./tesh --log="log.thresh:info tesh.fmt:%m%n" +#! ./tesh + +# This suite must be functional because we changed the timeout value to 10 +# before sleeping 6 secs. + +! expect return $ECMDTIMEDOUT +< ! timeout 1 +< $ sleep 6 +> Test unit from stdin +> [stdin:2] sleep 6 +> [stdin:2] `sleep 6' timed out after 1 sec +> [stdin:2] Kill the process `sleep 6' +> [stdin:2] No output before timeout +> Test unit `(stdin)' : NOK (command timed out) +$ ./tesh --log='log.thresh:info tesh.fmt:%m%n'