Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill src/include
[simgrid.git] / src / kernel / resource / NetworkModelFactors_test.cpp
index 27919db..0d5064b 100644 (file)
@@ -1,14 +1,14 @@
-/* Copyright (c) 2017-2022. 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/s4u/Engine.hpp"
-#include "simgrid/sg_config.hpp"
 #include "src/internal_config.h" // HAVE_SMPI
 #include "src/kernel/resource/NetworkModelFactors.hpp"
+#include "src/simgrid/sg_config.hpp"
 
 static double factor_cb(double, const simgrid::s4u::Host*, const simgrid::s4u::Host*,
                         const std::vector<simgrid::s4u::Link*>&, const std::unordered_set<simgrid::s4u::NetZone*>&)
@@ -32,7 +32,7 @@ TEST_CASE("kernel::resource::NetworkModelFactors: Factors invalid callbacks: exc
 
     SECTION("Model: " + model)
     {
-      auto zone = e.get_netzone_root();
+      const auto* zone = e.get_netzone_root();
       REQUIRE_THROWS_AS(zone->set_latency_factor_cb({}), std::invalid_argument);
       REQUIRE_THROWS_AS(zone->set_latency_factor_cb(nullptr), std::invalid_argument);
       REQUIRE_THROWS_AS(zone->set_bandwidth_factor_cb({}), std::invalid_argument);
@@ -59,7 +59,7 @@ TEST_CASE("kernel::resource::NetworkModelFactors: Invalid network/latency-factor
 
     SECTION("Model: " + model)
     {
-      auto zone = e.get_netzone_root();
+      const auto* zone = e.get_netzone_root();
       REQUIRE_THROWS_AS(zone->set_latency_factor_cb(factor_cb), std::invalid_argument);
       REQUIRE_THROWS_AS(zone->set_bandwidth_factor_cb(factor_cb), std::invalid_argument);
     }