X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/aba961ae5e8c0f92bc3e7b6b4a9a6f4d13173ea3..8a2f287f2a54e9f7825472989b0d9e3dbadbfc50:/teshsuite/s4u/activity-lifecycle/testing_test-wait.cpp diff --git a/teshsuite/s4u/activity-lifecycle/testing_test-wait.cpp b/teshsuite/s4u/activity-lifecycle/testing_test-wait.cpp index 0e15dcd1e3..2668936623 100644 --- a/teshsuite/s4u/activity-lifecycle/testing_test-wait.cpp +++ b/teshsuite/s4u/activity-lifecycle/testing_test-wait.cpp @@ -224,12 +224,16 @@ TEST_CASE("Activity test/wait: using >") XBT_INFO("#####[ launch next test ]#####"); RUN_SECTION("exec: run and wait<0> once", test_trivial>); - // exec: run and wait<0> many + RUN_SECTION("exec: run and wait<0> many", test_basic>); 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 - // exec: host failure and wait<0> / wait + RUN_SECTION("exec: actor failure and wait<0> / sleep", + test_failure_actor, waiter_sleep6>); + RUN_SECTION("exec: host failure and wait<0> / sleep", + test_failure_host, waiter_sleep6>); + RUN_SECTION("exec: actor failure and wait<0> / wait", + test_failure_actor, waiter_wait>); + RUN_SECTION("exec: host failure and wait<0> / wait", + test_failure_host, waiter_wait>); simgrid::s4u::this_actor::sleep_for(10); assert_cleanup(); @@ -240,12 +244,16 @@ TEST_CASE("Activity test/wait: using >") XBT_INFO("#####[ launch next test ]#####"); RUN_SECTION("exec: run and wait<1> once", test_trivial>); - // exec: run and wait<1> many + RUN_SECTION("exec: run and wait<1> many", test_basic>); 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 - // exec: host failure and wait<1> / wait + RUN_SECTION("exec: actor failure and wait<1> / sleep", + test_failure_actor, waiter_sleep6>); + RUN_SECTION("exec: host failure and wait<1> / sleep", + test_failure_host, waiter_sleep6>); + RUN_SECTION("exec: actor failure and wait<1> / wait", + test_failure_actor, waiter_wait>); + RUN_SECTION("exec: host failure and wait<1> / wait", + test_failure_host, waiter_wait>); simgrid::s4u::this_actor::sleep_for(10); assert_cleanup(); @@ -290,45 +298,3 @@ TEST_CASE("Activity test/wait: using >") simgrid::s4u::this_actor::sleep_for(10); assert_cleanup(); } - -// FIXME: The tests grouped here are currently failing. Once fixed, they should be put in the right section above. -// The tests can be activated with run-time parameter '*' or, more specifically '[failing]' -TEST_CASE("Activity test/wait: tests currently failing", "[.][failing]") -{ - XBT_INFO("#####[ launch next failing test ]#####"); - - // with tester_wait<0> - // -> wait_for() should return immediately and signal a timeout (timeout == 0) - RUN_SECTION("exec: run and wait<0> many", test_basic>); - // -> wait_for() should return immediately and signal a timeout (timeout == 0) - RUN_SECTION("exec: actor failure and wait<0> / sleep", - test_failure_actor, waiter_sleep6>); - // -> wait_for() should return immediately and signal a timeout (timeout == 0) - RUN_SECTION("exec: host failure and wait<0> / sleep", - test_failure_host, waiter_sleep6>); - // -> wait_for() should return immediately and signal a timeout (timeout == 0) - RUN_SECTION("exec: actor failure and wait<0> / wait", - test_failure_actor, waiter_wait>); - // -> wait_for() should return immediately and signal a timeout (timeout == 0) - RUN_SECTION("exec: host failure and wait<0> / wait", - test_failure_host, waiter_wait>); - - // with tester_wait<1> - // -> second call to wait_for() should wait for timeuout and not return immediately - RUN_SECTION("exec: run and wait<1> many", test_basic>); - // -> second call to wait_for() should report a failure, and not a timeout - RUN_SECTION("exec: actor failure and wait<1> / sleep", - test_failure_actor, waiter_sleep6>); - // -> second call to wait_for() should report a failure, and not a timeout - RUN_SECTION("exec: host failure and wait<1> / sleep", - test_failure_host, waiter_sleep6>); - // -> actor should not be killed by TimeoutException - RUN_SECTION("exec: actor failure and wait<1> / wait", - test_failure_actor, waiter_wait>); - // -> actor should not be killed by TimeoutException - RUN_SECTION("exec: host failure and wait<1> / wait", - test_failure_host, waiter_wait>); - - simgrid::s4u::this_actor::sleep_for(10); - assert_cleanup(); -}