Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move the files related to the platform parsing to kernel/xml
[simgrid.git] / src / kernel / resource / NetworkModelFactors_test.cpp
index 27919dbd1b4ca8975620a77708147060811e83ac..4f218c9798119e4a5777fe515552a153eaefbcce 100644 (file)
@@ -1,4 +1,4 @@
-/* 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. */
@@ -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);
     }