X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8d510dd9844ff0da71e3856a38fe067973d03e04..04444a3077f46c717719a05b0c10b39d16a8c53a:/testsuite/surf/surf_usage.c diff --git a/testsuite/surf/surf_usage.c b/testsuite/surf/surf_usage.c index 2e8c31af48..1a922a8e63 100644 --- a/testsuite/surf/surf_usage.c +++ b/testsuite/surf/surf_usage.c @@ -1,6 +1,6 @@ /* A few basic tests for the surf library */ -/* Copyright (c) 2004, 2005, 2006, 2007, 2008, 2009, 2010. The SimGrid Team. +/* Copyright (c) 2004-2012. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -11,6 +11,7 @@ #endif #include +#include "simgrid/sg_config.h" #include "surf/surf.h" #include "surf/surf_resource.h" #include "surf/surfxml_parse.h" // for reset callback @@ -52,8 +53,8 @@ void test(char *platform) e_surf_action_state_t stateActionB; e_surf_action_state_t stateActionC; double now = -1.0; - xbt_cfg_set_parse(_surf_cfg_set, "cpu/model:Cas01"); - xbt_cfg_set_parse(_surf_cfg_set, "network/model:CM02"); + xbt_cfg_set_parse(_sg_cfg_set, "cpu/model:Cas01"); + xbt_cfg_set_parse(_sg_cfg_set, "network/model:CM02"); parse_platform_file(platform); /*********************** CPU ***********************************/ @@ -82,8 +83,8 @@ void test(char *platform) /*********************** Network *******************************/ XBT_DEBUG("%p", surf_network_model); - cardA = surf_network_resource_by_name("Cpu A"); - cardB = surf_network_resource_by_name("Cpu B"); + cardA = sg_routing_edge_by_name_or_null("Cpu A"); + cardB = sg_routing_edge_by_name_or_null("Cpu B"); /* Let's check that those two processors exist */ XBT_DEBUG("%s : %p", surf_resource_name(cardA), cardA);