-/* Copyright (c) 2007-2012, 2014. The SimGrid Team.
+/* Copyright (c) 2007-2012, 2014-2015. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
#include <stdio.h>
#include <stdlib.h>
-#include "simdag/simdag.h"
+#include "simgrid/simdag.h"
#include "xbt/asserts.h"
#include "xbt/log.h"
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);