From 6d3268c19b418ead957068e44d68782e451c2ee2 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 18 Feb 2021 21:53:58 +0100 Subject: [PATCH] Use already defined namespace alias 'sg4'. --- teshsuite/models/ptask_L07/ptask_L07.cpp | 4 ++-- teshsuite/s4u/basic-parsing-test/basic-parsing-test.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/teshsuite/models/ptask_L07/ptask_L07.cpp b/teshsuite/models/ptask_L07/ptask_L07.cpp index 6c39cb7a55..ca7d353ac8 100644 --- a/teshsuite/models/ptask_L07/ptask_L07.cpp +++ b/teshsuite/models/ptask_L07/ptask_L07.cpp @@ -279,9 +279,9 @@ static void main_dispatcher() int main(int argc, char** argv) { - simgrid::s4u::Engine engine(&argc, argv); + sg4::Engine engine(&argc, argv); engine.load_platform(argv[1]); - simgrid::s4u::Actor::create("dispatcher", simgrid::s4u::Host::by_name("cpu0"), main_dispatcher); + sg4::Actor::create("dispatcher", sg4::Host::by_name("cpu0"), main_dispatcher); engine.run(); return 0; diff --git a/teshsuite/s4u/basic-parsing-test/basic-parsing-test.cpp b/teshsuite/s4u/basic-parsing-test/basic-parsing-test.cpp index 24705bb865..e195f7bc7c 100644 --- a/teshsuite/s4u/basic-parsing-test/basic-parsing-test.cpp +++ b/teshsuite/s4u/basic-parsing-test/basic-parsing-test.cpp @@ -59,13 +59,13 @@ static void test_full_link(const std::vector hosts) int main(int argc, char** argv) { - simgrid::s4u::Engine e(&argc, argv); + sg4::Engine e(&argc, argv); /* creation of the environment */ e.load_platform(argv[1]); XBT_INFO("Workstation number: %zu, link number: %zu", e.get_host_count(), e.get_link_count()); - std::vector hosts = e.get_all_hosts(); + std::vector hosts = e.get_all_hosts(); if (argc >= 3) { if (!strcmp(argv[2], "ONE_LINK")) test_one_link(hosts); -- 2.20.1