X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/75a383f8746398463787fa9a8505f417f2ca3eae..e97c47c6c2d678d4765fd3c078c1ba47e9d9cd3a:/tools/tesh/background.tesh diff --git a/tools/tesh/background.tesh b/tools/tesh/background.tesh index e03da443d7..3ef568ecde 100644 --- a/tools/tesh/background.tesh +++ b/tools/tesh/background.tesh @@ -1,50 +1,25 @@ +! output ignore +$ cmake -E remove bgtesh.pl bgtesh.data -$ rm -rf temp_testdir_background -$ mkdir temp_testdir_background -$ cd temp_testdir_background - -< #include -< #include -< #include -< #include -< #include -< #include -< -< int main() { -< char buff[2048]; -< int got; -< int in; +< use strict; +< sleep(1); +< open (FILE, "0) { -< int w = write(1,&buff,got); -< if (w<0) { -< perror("Error while writing:"); -< exit(1); -< } -< } -< if (got < 0) { -< perror("Error while reading:"); -< exit(1); -< } -< return 0; +< while () { +< print; < } -$ mkfile delayed_cat.c - -$ gcc -Wall -o delayed_cat delayed_cat.c +< close(FILE); +< exit 0; +< +$ mkfile bgtesh.pl -& ./delayed_cat +& perl bgtesh.pl > TOTO < TOTO -$ mkfile tmp_fich +$ mkfile bgtesh.data $ sleep 2 -$ cd .. -$ rm -rf temp_testdir_background +! output ignore +$ cmake -E remove bgtesh.pl bgtesh.data