X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/86051ed1b66342bae0e21fd6643e66331ac2c07d..d74fd8dbe0c5c2ff1b0f8dde533851573e86e4f3:/tools/tesh/background.tesh?ds=sidebyside diff --git a/tools/tesh/background.tesh b/tools/tesh/background.tesh index a416496aef..359d2a5446 100644 --- a/tools/tesh/background.tesh +++ b/tools/tesh/background.tesh @@ -1,7 +1,7 @@ -$ rm -rf temp_testdir -$ mkdir temp_testdir -$ cd temp_testdir +$ rm -rf temp_testdir_background +$ mkdir temp_testdir_background +$ cd temp_testdir_background < #include < #include @@ -9,13 +9,20 @@ $ cd temp_testdir < #include < #include < #include +< #ifdef WIN32 +< #include "windows.h" +< #endif < < int main() { < char buff[2048]; < int got; < int in; < +< #ifndef WIN32 < sleep(1); +< #else +< Sleep(1000); +< #endif < in = open("tmp_fich",O_RDONLY|O_CREAT); < if (in == -1) { < perror("Cannot open tmp_fich: "); @@ -34,17 +41,16 @@ $ cd temp_testdir < } < return 0; < } -$ cat > delayed_cat.c +$ mkfile delayed_cat.c $ gcc -Wall -o delayed_cat delayed_cat.c -& ./delayed_cat +& ./delayed_cat > TOTO < TOTO -$ cat > tmp_fich +$ mkfile tmp_fich $ sleep 2 $ cd .. -$ rm -rf temp_testdir - +$ rm -rf temp_testdir_background