X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/242fde5e8077f8193db4df5f262a9672085c8d8a..63d18c86bbffb905a9d31dc2384596cead30529a:/teshsuite/surf/surf_usage/surf_usage2.c diff --git a/teshsuite/surf/surf_usage/surf_usage2.c b/teshsuite/surf/surf_usage/surf_usage2.c index 8d3791e95c..7859613657 100644 --- a/teshsuite/surf/surf_usage/surf_usage2.c +++ b/teshsuite/surf/surf_usage/surf_usage2.c @@ -1,15 +1,11 @@ /* A few basic tests for the surf library */ -/* Copyright (c) 2004-2014. The SimGrid Team. +/* Copyright (c) 2004-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifdef __BORLANDC__ -#pragma hdrstop -#endif - #include #include "simgrid/sg_config.h" #include "surf/surf.h" @@ -76,8 +72,8 @@ void test(char *platform) now = surf_get_clock(); XBT_DEBUG("Next Event : %g", now); - xbt_dynar_foreach(model_list, iter, model) { - XBT_DEBUG("\t %s actions", surf_model_name(model)); + xbt_dynar_foreach(all_existing_models, iter, model) { + XBT_DEBUG("\t Actions"); while ((action = surf_model_extract_failed_action_set((surf_model_t)model))) { XBT_DEBUG("\t * Failed : %p", action); surf_action_unref(action); @@ -87,7 +83,7 @@ void test(char *platform) surf_action_unref(action); } if (surf_model_running_action_set_size((surf_model_t)model)) { - XBT_DEBUG("running %s", surf_model_name(model)); + XBT_DEBUG("running that model"); running = 1; } } @@ -97,10 +93,6 @@ void test(char *platform) } -#ifdef __BORLANDC__ -#pragma argsused -#endif - int main(int argc, char **argv) { surf_init(&argc, argv); /* Initialize some common structures */