X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/028600ff598195e84323493a1f790c2df5ef3bb2..5e044aacdc2c13e6d78c4f5bb64db0f25140bc10:/teshsuite/simdag/basic5/basic5.c diff --git a/teshsuite/simdag/basic5/basic5.c b/teshsuite/simdag/basic5/basic5.c index 59e0bf6a78..1382e36d7a 100644 --- a/teshsuite/simdag/basic5/basic5.c +++ b/teshsuite/simdag/basic5/basic5.c @@ -39,9 +39,11 @@ int main(int argc, char **argv) SD_task_dependency_add(NULL, NULL, taskInit, taskA); SD_task_dependency_add(NULL, NULL, taskInit, taskB); - SD_task_schedule(taskInit, 1, sg_host_list(), no_cost, no_cost, -1.0); - SD_task_schedule(taskA, 2, sg_host_list(), no_cost, amount, -1.0); - SD_task_schedule(taskB, 1, sg_host_list(), comput, no_cost, -1.0); + sg_host_t *hosts = sg_host_list(); + SD_task_schedule(taskInit, 1, hosts, no_cost, no_cost, -1.0); + SD_task_schedule(taskA, 2, hosts, no_cost, amount, -1.0); + SD_task_schedule(taskB, 1, hosts, comput, no_cost, -1.0); + xbt_free(hosts); /* let's launch the simulation! */ SD_simulate(-1.0); @@ -51,6 +53,5 @@ int main(int argc, char **argv) XBT_INFO("Simulation time: %f", SD_get_clock()); - SD_exit(); return 0; }