]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/routing/StarZone_test.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to fix a compiler error seen on Flag2 job of jenkins
[simgrid.git] / src / kernel / routing / StarZone_test.cpp
index afc79b61cf9b48a4a81ee22d1831002474b9100b..4c7ff4d9925763c76f49532525e3612fa231cbe2 100644 (file)
@@ -1,16 +1,16 @@
-/* Copyright (c) 2017-2021. The SimGrid Team. All rights reserved.               */
+/* Copyright (c) 2017-2023. 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. */
 
-#include "catch.hpp"
+#include "src/3rd-party/catch.hpp"
 
 #include "simgrid/kernel/routing/NetPoint.hpp"
 #include "simgrid/kernel/routing/StarZone.hpp"
 #include "simgrid/s4u/Engine.hpp"
 #include "simgrid/s4u/Host.hpp"
 #include "simgrid/s4u/NetZone.hpp"
-#include "src/surf/network_interface.hpp"
+#include "src/kernel/resource/StandardLinkImpl.hpp"
 
 TEST_CASE("kernel::routing::StarZone: Creating Zone", "[creation]")
 {
@@ -287,7 +287,6 @@ TEST_CASE("kernel::routing::StarZone: mix new routes and hosts", "")
   for (int i = 0; i < 10; i++) {
     std::string cpu_name          = "CPU" + std::to_string(i);
     const simgrid::s4u::Host* cpu = zone->create_host(cpu_name, 1e9)->seal();
-    REQUIRE_NOTHROW(
-        zone->add_route(cpu->get_netpoint(), nullptr, nullptr, nullptr, {simgrid::s4u::LinkInRoute(link)}, true));
+    REQUIRE_NOTHROW(zone->add_route(cpu, nullptr, {link}));
   }
 }