Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add print out for simulated time.
[simgrid.git] / tools / tesh / catch-timeout.tesh
1 #! ./tesh
2
3 # This suite must be functional because we changed the timeout value to 10
4 # before sleeping 6 secs.
5
6 ! expect return 3
7 < ! timeout 1
8 < $ sleep 6
9 > Enable coverage
10 > Test suite from stdin
11 > [(stdin):2] sleep 6
12 > <(stdin):2> timeouted. Kill the process.
13 > <(stdin):2> No output before timeout
14 > Test suite `(stdin)': NOK (<(stdin):2> timeout after 1 sec)
15 $ ./tesh --enable-coverage --log='log.thresh:info tesh.fmt:%m%n'