Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix some tesh after changing dependence relation about Semaphore
[simgrid.git] / teshsuite / s4u / issue71 / issue71.cpp
index 3952bdce58f520ba8bb57da5c2af608cfe42935f..7983e49f66d7b41039ac0dfa09c95dbd36749f3a 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2021-2022. The SimGrid Team. All rights reserved.               */
+/* Copyright (c) 2021-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. */
@@ -9,7 +9,7 @@
 
 static void runner()
 {
-  auto e                    = simgrid::s4u::Engine::get_instance();
+  const auto* e             = simgrid::s4u::Engine::get_instance();
   simgrid::s4u::Host* host0 = e->host_by_name("c1_0");
   simgrid::s4u::Host* host1 = e->host_by_name("c2_0");
 
@@ -36,8 +36,7 @@ int main(int argc, char* argv[])
     e.load_platform(platform_file);
     simgrid::s4u::Actor::create("actor", e.host_by_name("c1_0"), runner);
     e.run();
-  }
-  catch (simgrid::AssertionError& e) {
+  } catch (const simgrid::AssertionError& e) {
     std::cout << e.what() << "\n";
   }