Skip to content

Commit 0eedd87

Browse files
fix failing test in test_xy_routing
1 parent 64336c8 commit 0eedd87

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

vpr/src/noc/turn_model_routing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void TurnModelRouting::route_flow(NocRouterId src_router_id,
7373
if (next_link) {
7474
flow_route.push_back(next_link);
7575
} else {
76-
VPR_FATAL_ERROR(VPR_ERROR_OTHER, "No route could be found from starting router with ID:'%d'"
76+
VPR_FATAL_ERROR(VPR_ERROR_OTHER, "No route could be found from starting router with ID:'%d' "
7777
"and the destination router with ID:'%d' using the XY-Routing algorithm.",
7878
src_router.get_router_user_id(),
7979
dst_router.get_router_user_id());

vpr/test/test_xy_routing.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
#include "xy_routing.h"
55

6-
namespace {
7-
86
/**
97
* @brief Compares two vectors of NocLinks. These vectors represent
108
* two routes between a start and destination routers. This function
@@ -274,7 +272,7 @@ TEST_CASE("test_route_flow when it fails in a mesh topology.", "[vpr_noc_xy_rout
274272
// creating the XY routing object
275273
XYRouting routing_algorithm;
276274

277-
SECTION("Test case where the xy routing algorithm fails to find a horziontal link to traverse.") {
275+
SECTION("Test case where the xy routing algorithm fails to find a horizontal link to traverse.") {
278276
/*
279277
* The route we will test will be starting at router 3 and end at
280278
* router 0. We will delete the link connecting router 2 to router 1.
@@ -338,7 +336,7 @@ TEST_CASE("test_route_flow when it fails in a non mesh topology.", "[vpr_noc_xy_
338336
* just pinpong between routers 0 and 3.
339337
*
340338
* The purpose of this test case is to make sure that this situation is
341-
* appropristely handled through an error.
339+
* appropriately handled through an error.
342340
*
343341
* This is a map of what the NoC looks like, where the numbers indicate the NoC router id.
344342
*
@@ -379,6 +377,4 @@ TEST_CASE("test_route_flow when it fails in a non mesh topology.", "[vpr_noc_xy_
379377
// now use the XY router to find a route. We expect this to fail to check that.
380378
REQUIRE_THROWS_WITH(routing_algorithm.route_flow(start_router_id, sink_router_id, traffic_flow_id, found_path, noc_model),
381379
"No route could be found from starting router with ID:'3' and the destination router with ID:'1' using the XY-Routing algorithm.");
382-
}
383-
384-
} // namespace
380+
}

0 commit comments

Comments
 (0)