X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f06041cf2c450457a0b47a49b66b19cb9133c18e..da25148eac65bb09ab1ef88fb0c3182d784e5732:/teshsuite/simdag/partask/test_comp_only_seq.c diff --git a/teshsuite/simdag/partask/test_comp_only_seq.c b/teshsuite/simdag/partask/test_comp_only_seq.c index 589830044c..9b17ca01f7 100644 --- a/teshsuite/simdag/partask/test_comp_only_seq.c +++ b/teshsuite/simdag/partask/test_comp_only_seq.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2007, 2009-2011, 2013-2014. The SimGrid Team. +/* Copyright (c) 2007, 2009-2011, 2013-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -17,17 +17,15 @@ int main(int argc, char **argv) double comp_cost[] = { 1.0 }; SD_task_t task; - xbt_dynar_t ret; SD_init(&argc, argv); SD_create_environment(argv[1]); task = SD_task_create("seqtask", NULL, 1.0); - SD_task_schedule(task, 1, SD_workstation_get_list(), comp_cost, + SD_task_schedule(task, 1, sg_host_list(), comp_cost, comm_amount, -1.0); - ret = SD_simulate(-1.0); - xbt_dynar_free(&ret); + SD_simulate(-1.0); time = SD_get_clock();