Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Replace tesh.pl by pesh.py a much better version of tesh in python.
[simgrid.git] / tools / tesh / catch-return.tesh
1 #! ./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)