Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
SimDag Revolution: SD_workstation becomes sg_host
[simgrid.git] / teshsuite / simdag / basic / basic6.c
index 3c40d9d..7b5582f 100644 (file)
@@ -35,16 +35,15 @@ int main(int argc, char **argv)
   taskA = SD_task_create("Task A", NULL, 1.0);
   taskB = SD_task_create("Task B", NULL, 1.0);
 
-  SD_task_schedule(taskA, 1, SD_workstation_get_list(), comp_cost,
+  SD_task_schedule(taskA, 1, sg_host_list(), comp_cost,
                    comm_cost, -1.0);
-  SD_task_schedule(taskB, 1, SD_workstation_get_list(), comp_cost,
+  SD_task_schedule(taskB, 1, sg_host_list(), comp_cost,
                    comm_cost, -1.0);
 
   ret = SD_simulate(-1.0);
   xbt_assert(xbt_dynar_length(ret) == 2,
-      "I was expecting the terminaison of 2 tasks, but I got %lu instead",
+      "I was expecting the completion of 2 tasks, but I got %lu instead",
       xbt_dynar_length(ret));
-  xbt_dynar_free(&ret);
   SD_task_destroy(taskA);
   SD_task_destroy(taskB);