From a17fa4f3cc6f21c9fbe45154c0a1ff4993ba8ef8 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 18 Jun 2017 00:27:10 +0200 Subject: [PATCH] make it possible to run this test with any platform --- teshsuite/s4u/comm-waitany/comm-waitany.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/teshsuite/s4u/comm-waitany/comm-waitany.cpp b/teshsuite/s4u/comm-waitany/comm-waitany.cpp index d1748ddaa8..72568bcdf3 100644 --- a/teshsuite/s4u/comm-waitany/comm-waitany.cpp +++ b/teshsuite/s4u/comm-waitany/comm-waitany.cpp @@ -64,10 +64,10 @@ int main(int argc, char** argv) xbt_assert(argc >= 2, "Usage: %s ", argv[0]); engine->loadPlatform(argv[1]); - simgrid::s4u::Host* host = simgrid::s4u::Host::by_name("Tremblay"); - - simgrid::s4u::Actor::createActor("Receiver", host, receiver); - simgrid::s4u::Actor::createActor("Sender", host, sender); + simgrid::s4u::Host** hosts = sg_host_list(); + simgrid::s4u::Actor::createActor("Receiver", hosts[1], receiver); + simgrid::s4u::Actor::createActor("Sender", hosts[2], sender); + xbt_free(hosts); simgrid::s4u::Engine::instance()->run(); -- 2.20.1