From: Arnaud Giersch Date: Fri, 12 Feb 2021 09:55:05 +0000 (+0100) Subject: Specialize with ExecPtr. X-Git-Tag: v3.27~399 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/15b74519f0eb2f7804b3d7f83871bfd461fd7fe7 Specialize with ExecPtr. --- diff --git a/teshsuite/s4u/activity-lifecycle/testing_test-wait.cpp b/teshsuite/s4u/activity-lifecycle/testing_test-wait.cpp index b083ded116..f8430d20bd 100644 --- a/teshsuite/s4u/activity-lifecycle/testing_test-wait.cpp +++ b/teshsuite/s4u/activity-lifecycle/testing_test-wait.cpp @@ -10,7 +10,7 @@ template using creator_type = Activity (*)(double); // Create a new async execution with given duration -static simgrid::s4u::ActivityPtr create_exec(double duration) +static simgrid::s4u::ExecPtr create_exec(double duration) { double speed = simgrid::s4u::this_actor::get_host()->get_speed(); return simgrid::s4u::this_actor::exec_async(speed * duration); @@ -168,23 +168,23 @@ void test_failure_host() //========== -using simgrid::s4u::ActivityPtr; +using simgrid::s4u::ExecPtr; TEST_CASE("Activity test/wait: using ") { XBT_INFO("#####[ launch next test ]#####"); - RUN_SECTION("exec: run and test once", test_trivial); - RUN_SECTION("exec: run and test many", test_basic); - RUN_SECTION("exec: cancel and test", test_cancel); + RUN_SECTION("exec: run and test once", test_trivial); + RUN_SECTION("exec: run and test many", test_basic); + RUN_SECTION("exec: cancel and test", test_cancel); RUN_SECTION("exec: actor failure and test / sleep", - test_failure_actor); + test_failure_actor); RUN_SECTION("exec: host failure and test / sleep", - test_failure_host); + test_failure_host); RUN_SECTION("exec: actor failure and test / wait", - test_failure_actor); + test_failure_actor); RUN_SECTION("exec: host failure and test / wait", - test_failure_host); + test_failure_host); simgrid::s4u::this_actor::sleep_for(10); assert_cleanup(); @@ -194,9 +194,9 @@ TEST_CASE("Activity test/wait: using >") { XBT_INFO("#####[ launch next test ]#####"); - RUN_SECTION("exec: run and wait<0> once", test_trivial>); + RUN_SECTION("exec: run and wait<0> once", test_trivial>); // exec: run and wait<0> many - RUN_SECTION("exec: cancel and wait<0>", test_cancel>); + RUN_SECTION("exec: cancel and wait<0>", test_cancel>); // exec: actor failure and wait<0> / sleep // exec: host failure and wait<0> / sleep // exec: actor failure and wait<0> / wait @@ -210,9 +210,9 @@ TEST_CASE("Activity test/wait: using >") { XBT_INFO("#####[ launch next test ]#####"); - RUN_SECTION("exec: run and wait<1> once", test_trivial>); + RUN_SECTION("exec: run and wait<1> once", test_trivial>); // exec: run and wait<1> many - RUN_SECTION("exec: cancel and wait<1>", test_cancel>); + RUN_SECTION("exec: cancel and wait<1>", test_cancel>); // exec: actor failure and wait<1> / sleep // exec: host failure and wait<1> / sleep // exec: actor failure and wait<1> / wait @@ -229,26 +229,26 @@ TEST_CASE("Activity test/wait: tests currently failing", "[.][failing]") XBT_INFO("#####[ launch next failing test ]#####"); // with tester_wait<0> - RUN_SECTION("exec: run and wait<0> many", test_basic>); + RUN_SECTION("exec: run and wait<0> many", test_basic>); RUN_SECTION("exec: actor failure and wait<0> / sleep", - test_failure_actor, waiter_sleep6>); + test_failure_actor, waiter_sleep6>); RUN_SECTION("exec: host failure and wait<0> / sleep", - test_failure_host, waiter_sleep6>); + test_failure_host, waiter_sleep6>); RUN_SECTION("exec: actor failure and wait<0> / wait", - test_failure_actor, waiter_wait>); + test_failure_actor, waiter_wait>); RUN_SECTION("exec: host failure and wait<0> / wait", - test_failure_host, waiter_wait>); + test_failure_host, waiter_wait>); // with tester_wait<1> - RUN_SECTION("exec: run and wait<1> many", test_basic>); + RUN_SECTION("exec: run and wait<1> many", test_basic>); RUN_SECTION("exec: actor failure and wait<1> / sleep", - test_failure_actor, waiter_sleep6>); + test_failure_actor, waiter_sleep6>); RUN_SECTION("exec: host failure and wait<1> / sleep", - test_failure_host, waiter_sleep6>); + test_failure_host, waiter_sleep6>); RUN_SECTION("exec: actor failure and wait<1> / wait", - test_failure_actor, waiter_wait>); + test_failure_actor, waiter_wait>); RUN_SECTION("exec: host failure and wait<1> / wait", - test_failure_host, waiter_wait>); + test_failure_host, waiter_wait>); simgrid::s4u::this_actor::sleep_for(10); assert_cleanup();