Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
8a16fb54594db6413ffa1aecf50dcda5a276cc53
[simgrid.git] / tools / tesh2 / examples / 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 $ECMDTIMEDOUT
7 < ! timeout 1
8 < $ sleep 6
9 > Test unit from stdin
10 > [stdin:2] sleep 6
11 > [stdin:2] `sleep 6' timed out after 1 sec
12 > [stdin:2] Kill the process `sleep 6'
13 > [stdin:2] No output before timeout
14 > Test unit `(stdin)' : NOK (command timed out)
15 $ ./tesh --log='log.thresh:info tesh.fmt:%m%n'