X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/72a105702165975d1702e64af7d28b60eb311672..280670eff128291d00a30689bdbbd986f7b0a773:/tools/tesh2/examples/set-return.tesh diff --git a/tools/tesh2/examples/set-return.tesh b/tools/tesh2/examples/set-return.tesh index 204aded5fc..d3b16005b7 100644 --- a/tools/tesh2/examples/set-return.tesh +++ b/tools/tesh2/examples/set-return.tesh @@ -1,20 +1,20 @@ -#! ./tesh -# This suite builds and uses a program returning 1. -# tesh is instructed of this return code and must not whine. - -$ rm -rf temp_testdir -$ mkdir temp_testdir - -$ cd temp_testdir -< #include -< int main(void) { -< exit(1); -< } -$ Cat > return1.c - -$ gcc -o return1 return1.c - -! expect return 1 -$ ./return1 -$ cd .. -$ rm -rf temp_testdir +#! ./tesh +# This suite builds and uses a program returning 1. +# tesh is instructed of this return code and must not whine. + +$ rm -rf temp_testdir +$ mkdir temp_testdir + +$ cd temp_testdir +< #include +< int main(void) { +< exit(1); +< } +$ cat > return1.c + +$ gcc -o return1 return1.c + +! expect return 1 +$ ./return1 +$ cd .. +$ rm -rf temp_testdir