From: navarrop Date: Wed, 27 Oct 2010 10:42:12 +0000 (+0000) Subject: Fix tests using link_ctn and route with bypass. X-Git-Tag: v3_5~362 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a09eb6556675019e53ca2566d0f9770fbe77ef82?ds=sidebyside Fix tests using link_ctn and route with bypass. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8463 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/msg/masterslave/masterslave_bypass.c b/examples/msg/masterslave/masterslave_bypass.c index f6d3e2892e..ebcd5435ee 100644 --- a/examples/msg/masterslave/masterslave_bypass.c +++ b/examples/msg/masterslave/masterslave_bypass.c @@ -23,7 +23,7 @@ static int surf_parse_bypass_platform(void) surfxml_bufferstack = xbt_new0(char, surfxml_bufferstack_size); DEBUG0(""); - SURFXML_BUFFER_SET(platform_version, "2"); + SURFXML_BUFFER_SET(platform_version, "3"); SURFXML_START_TAG(platform); DEBUG0(""); @@ -66,9 +66,11 @@ static int surf_parse_bypass_platform(void) DEBUG0(""); SURFXML_BUFFER_SET(route_src, "host A"); SURFXML_BUFFER_SET(route_dst, "host B"); + A_surfxml_route_symetrical = A_surfxml_route_symetrical_YES; SURFXML_START_TAG(route); DEBUG0(" "); SURFXML_BUFFER_SET(link_ctn_id, "LinkA"); + A_surfxml_link_ctn_direction = A_surfxml_link_ctn_direction_NONE; SURFXML_START_TAG(link_ctn); SURFXML_END_TAG(link_ctn); DEBUG0(""); diff --git a/src/surf/surf_routing.c b/src/surf/surf_routing.c index b99054e348..c7697f5e5a 100644 --- a/src/surf/surf_routing.c +++ b/src/surf/surf_routing.c @@ -3108,6 +3108,7 @@ static void routing_full_parse_Scluster(void) DEBUG1("", cluster_id); SURFXML_BUFFER_SET(link_ctn_id, bprintf("%s_link_$1src", cluster_id)); + A_surfxml_link_ctn_direction = A_surfxml_link_ctn_direction_NONE; if(cluster_sharing_policy == A_surfxml_cluster_sharing_policy_FULLDUPLEX) {A_surfxml_link_ctn_direction = A_surfxml_link_ctn_direction_UP;} SURFXML_START_TAG(link_ctn); @@ -3121,6 +3122,7 @@ static void routing_full_parse_Scluster(void) DEBUG1("", cluster_id); SURFXML_BUFFER_SET(link_ctn_id, bprintf("%s_link_$1dst", cluster_id)); + A_surfxml_link_ctn_direction = A_surfxml_link_ctn_direction_NONE; if(cluster_sharing_policy == A_surfxml_cluster_sharing_policy_FULLDUPLEX) {A_surfxml_link_ctn_direction = A_surfxml_link_ctn_direction_UP;} SURFXML_START_TAG(link_ctn); diff --git a/teshsuite/simdag/platforms/one_cluster.xml b/teshsuite/simdag/platforms/one_cluster.xml index ac2c0b42dc..3581df4c5b 100644 --- a/teshsuite/simdag/platforms/one_cluster.xml +++ b/teshsuite/simdag/platforms/one_cluster.xml @@ -4,7 +4,6 @@ + bb_bw="2250000000.00" bb_lat="5e-4"/> diff --git a/teshsuite/simdag/platforms/two_hosts_one_link.xml b/teshsuite/simdag/platforms/two_hosts_one_link.xml index 372e7bcd35..24c328d2ec 100644 --- a/teshsuite/simdag/platforms/two_hosts_one_link.xml +++ b/teshsuite/simdag/platforms/two_hosts_one_link.xml @@ -6,13 +6,13 @@ - - - + + + + + - -