X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cf108868b4eeed4d0d9d343bc68557d7814e18c0..80d9a48e7538e146c639c538a52a1113d4fa922f:/teshsuite/simdag/incomplete/incomplete.c diff --git a/teshsuite/simdag/incomplete/incomplete.c b/teshsuite/simdag/incomplete/incomplete.c index 68238f013e..538a3838aa 100644 --- a/teshsuite/simdag/incomplete/incomplete.c +++ b/teshsuite/simdag/incomplete/incomplete.c @@ -42,11 +42,11 @@ int main(int argc, char **argv) SD_task_dependency_add(NULL, NULL, taskInit, taskB); SD_task_dependency_add(NULL, NULL, taskC, taskD); - const sg_host_t *hosts = sg_host_list(); - - SD_task_schedule(taskInit, 1, sg_host_list(), &no_cost, &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, 1, &hosts[0], &no_cost, &communication_amount1, -1.0); SD_task_schedule(taskD, 1, &hosts[0], &no_cost, &communication_amount1, -1.0); + xbt_free(hosts); /* let's launch the simulation! */ SD_simulate(-1.); @@ -59,6 +59,6 @@ int main(int argc, char **argv) XBT_INFO("Simulation time: %f", SD_get_clock()); - SD_exit(); + return 0; }