X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7a8cd62135619ad52e05ae1c929ef07e166e4260..f7d6b6bfb8f2e3c83e87a73baebc5b19713cdd7d:/tools/tesh/background.tesh diff --git a/tools/tesh/background.tesh b/tools/tesh/background.tesh index 7c9de93192..3fbabd3475 100644 --- a/tools/tesh/background.tesh +++ b/tools/tesh/background.tesh @@ -1,44 +1,20 @@ -$ rm -rf temp_testdir_background +$ cmake -E remove_directory 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(2); +< 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 +< exit 0; +< +$ mkfile delayed_cat.pl -$ gcc -Wall -o delayed_cat delayed_cat.c - -& ./delayed_cat +& perl delayed_cat.pl > TOTO < TOTO @@ -46,4 +22,4 @@ $ mkfile tmp_fich $ sleep 2 $ cd .. -$ rm -rf temp_testdir_background +$ cmake -E remove_directory temp_testdir_background