X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/89abf0b3f30962bda39a0d372f85895a6f02681d..cdd4d20278cbee5a9f11f9f455bff8836410568c:/tools/tesh/catch-timeout.tesh diff --git a/tools/tesh/catch-timeout.tesh b/tools/tesh/catch-timeout.tesh index 786d011a71..a246c16035 100644 --- 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 10 +# This suite must be functional because we changed the timeout value to 1 # before sleeping 6 secs. ! expect return 3 < ! timeout 1 < $ sleep 6 -> Enable coverage > Test suite from stdin > [(stdin):2] sleep 6 -> <(stdin):2> timeouted. Kill the process. -> <(stdin):2> No output before timeout > Test suite `(stdin)': NOK (<(stdin):2> timeout after 1 sec) -$ ./tesh --enable-coverage +$ ${bindir:=.}/tesh