X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7a8cd62135619ad52e05ae1c929ef07e166e4260..34b1612aaf4fb4375dc39f42941027e56b80aafa:/tools/tesh/catch-timeout.tesh diff --git a/tools/tesh/catch-timeout.tesh b/tools/tesh/catch-timeout.tesh index d9daf92e95..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 --log='log.thresh:info tesh.fmt:%m%n' +$ ${bindir:=.}/tesh