X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/75a383f8746398463787fa9a8505f417f2ca3eae..43bd833fa2f2127b62b553803e0bb9dc7fb11218:/tools/tesh/background.tesh diff --git a/tools/tesh/background.tesh b/tools/tesh/background.tesh index e03da443d7..1029d89c3a 100644 --- a/tools/tesh/background.tesh +++ b/tools/tesh/background.tesh @@ -9,13 +9,20 @@ $ cd temp_testdir_background < #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: "); @@ -36,9 +43,9 @@ $ cd temp_testdir_background < } $ mkfile delayed_cat.c -$ gcc -Wall -o delayed_cat delayed_cat.c +$ cc -Wall -o delayed_cat delayed_cat.c -& ./delayed_cat +& ./delayed_cat > TOTO < TOTO @@ -47,4 +54,3 @@ $ mkfile tmp_fich $ sleep 2 $ cd .. $ rm -rf temp_testdir_background -