Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix copyright headers
[simgrid.git] / tools / tesh / set-return.tesh
1 #! ./tesh
2 # This suite builds and uses a program returning 1.
3 # tesh is instructed of this return code and must not whine.
4
5 $ rm -rf temp_testdir-set-return
6 $ mkdir temp_testdir-set-return
7
8 $ cd temp_testdir-set-return
9 < #include <stdlib.h>
10 < int main(void) {
11 <   exit(1);
12 < }
13 $ mkfile return1.c
14
15 $ gcc -o return1 return1.c
16
17 ! expect return 1
18 $ ./return1
19 $ cd ..
20 $ rm -rf temp_testdir-set-return