A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
204aded5fc303ee31ad591051bef584f14479d96
[simgrid.git]
/
tools
/
tesh2
/
examples
/
set-return.tesh
1
#! ./tesh
\r
2
# This suite builds and uses a program returning 1.
\r
3
# tesh is instructed of this return code and must not whine.
\r
4
\r
5
$ rm -rf temp_testdir
\r
6
$ mkdir temp_testdir
\r
7
\r
8
$ cd temp_testdir
\r
9
< #include <stdlib.h>
\r
10
< int main(void) {
\r
11
< exit(1);
\r
12
< }
\r
13
$ Cat > return1.c
\r
14
\r
15
$ gcc -o return1 return1.c
\r
16
\r
17
! expect return 1
\r
18
$ ./return1
\r
19
$ cd ..
\r
20
$ rm -rf temp_testdir
\r