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
Really get the first host (fixes failing test).
[simgrid.git]
/
examples
/
msg
/
parallel_task
/
parallel_task.c
diff --git
a/examples/msg/parallel_task/parallel_task.c
b/examples/msg/parallel_task/parallel_task.c
index
e6ac43a
..
11f7251
100644
(file)
--- a/
examples/msg/parallel_task/parallel_task.c
+++ b/
examples/msg/parallel_task/parallel_task.c
@@
-71,7
+71,7
@@
MSG_error_t test_all(const char *platform_file)
MSG_create_environment(platform_file);
all_hosts = MSG_hosts_as_dynar();
MSG_create_environment(platform_file);
all_hosts = MSG_hosts_as_dynar();
- first_host = xbt_dynar_
pop
_as(all_hosts,m_host_t);
+ first_host = xbt_dynar_
getfirst
_as(all_hosts,m_host_t);
MSG_process_create("test", test, NULL, first_host);
res = MSG_main();
xbt_dynar_free(&all_hosts);
MSG_process_create("test", test, NULL, first_host);
res = MSG_main();
xbt_dynar_free(&all_hosts);