Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
reduce the amount of damn paranoid checks in simdag. Valgrind is here to report the...
[simgrid.git] / teshsuite / simdag / basic6.c
index 454725e..f73725d 100644 (file)
@@ -32,6 +32,8 @@ int main(int argc, char **argv)
                    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", xbt_dynar_length(ret));
   xbt_dynar_free(&ret);
   SD_task_destroy(taskA);
   SD_task_destroy(taskB);