Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Icc: turn error #597 into warning.
[simgrid.git] / tools / tesh / catch-return.tesh
1 #!/usr/bin/env tesh
2 # This suite builds and uses a program returning 1.
3 # tesh must detect this condition and report the issue.
4
5 ! expect return 2
6 < $ perl -e "exit 1"
7 $ ${bindir:=.}/tesh
8 > Test suite from stdin
9 > [(stdin):1] perl -e "exit 1"
10 > Test suite `(stdin)': NOK (<(stdin):1> returned code 1)