A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rewrite smpi build scripts to deal with file names containing spaces.
[simgrid.git]
/
tools
/
tesh
/
background.tesh
diff --git
a/tools/tesh/background.tesh
b/tools/tesh/background.tesh
index
a3d196b
..
359d2a5
100644
(file)
--- 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 <unistd.h>
< #include <stdlib.h>
< #include <unistd.h>
< #include <stdlib.h>
@@
-9,13
+9,20
@@
$ cd temp_testdir
< #include <sys/types.h>
< #include <sys/stat.h>
< #include <fcntl.h>
< #include <sys/types.h>
< #include <sys/stat.h>
< #include <fcntl.h>
+< #ifdef WIN32
+< #include "windows.h"
+< #endif
<
< int main() {
< char buff[2048];
< int got;
< int in;
<
<
< int main() {
< char buff[2048];
< int got;
< int in;
<
+< #ifndef WIN32
< sleep(1);
< sleep(1);
+< #else
+< Sleep(1000);
+< #endif
< in = open("tmp_fich",O_RDONLY|O_CREAT);
< if (in == -1) {
< perror("Cannot open tmp_fich: ");
< in = open("tmp_fich",O_RDONLY|O_CREAT);
< if (in == -1) {
< perror("Cannot open tmp_fich: ");
@@
-38,7
+45,7
@@
$ mkfile delayed_cat.c
$ gcc -Wall -o delayed_cat delayed_cat.c
$ gcc -Wall -o delayed_cat delayed_cat.c
-& ./delayed_cat
+& ./delayed_cat
> TOTO
< TOTO
> TOTO
< TOTO
@@
-46,5
+53,4
@@
$ mkfile tmp_fich
$ sleep 2
$ cd ..
$ sleep 2
$ cd ..
-$ rm -rf temp_testdir
-
+$ rm -rf temp_testdir_background