X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bdfa117ce4f85c77d50219cb2e115d88d3f35f8e..040d8fa855d2b6ac9884f68108a09b935570be21:/teshsuite/s4u/cloud-two-execs/cloud-two-execs.cpp diff --git a/teshsuite/s4u/cloud-two-execs/cloud-two-execs.cpp b/teshsuite/s4u/cloud-two-execs/cloud-two-execs.cpp index 9e38bce058..adfd0f4657 100644 --- a/teshsuite/s4u/cloud-two-execs/cloud-two-execs.cpp +++ b/teshsuite/s4u/cloud-two-execs/cloud-two-execs.cpp @@ -1,11 +1,11 @@ -/* Copyright (c) 2014-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2014-2022. 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 "simgrid/s4u.hpp" -XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_test, "Messages specific for this msg example"); +XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_test, "Messages specific for this example"); simgrid::s4u::ExecPtr exec; @@ -34,7 +34,7 @@ static void computation_fun() static void master_main() { auto* pm0 = simgrid::s4u::Host::by_name("Fafard"); - auto* vm0 = new simgrid::s4u::VirtualMachine("VM0", pm0, 1); + auto* vm0 = pm0->create_vm("VM0", 1); vm0->start(); simgrid::s4u::Actor::create("compute", vm0, computation_fun);