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
test that joining a terminated process still works
[simgrid.git]
/
teshsuite
/
msg
/
process_join
/
process_join.c
diff --git
a/teshsuite/msg/process_join/process_join.c
b/teshsuite/msg/process_join/process_join.c
index
67cb1ad
..
a19aa05
100644
(file)
--- a/
teshsuite/msg/process_join/process_join.c
+++ b/
teshsuite/msg/process_join/process_join.c
@@
-35,6
+35,13
@@
static int master(int argc, char *argv[])
XBT_INFO("Join the slave (timeout 2)");
MSG_process_join(process, 2);
XBT_INFO("Join the slave (timeout 2)");
MSG_process_join(process, 2);
+ XBT_INFO("Start slave");
+ process = MSG_process_create("slave from master", slave, NULL, MSG_host_self());
+ XBT_INFO("Waiting 4");
+ MSG_process_sleep(4);
+ XBT_INFO("Join the slave (timeout 1)");
+ MSG_process_join(process, 1);
+
XBT_INFO("Goodbye now!");
MSG_process_sleep(1);
XBT_INFO("Goodbye now!");
MSG_process_sleep(1);