X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/522f694491ec7c0ee5af8cdf014299d53d599956..6a5914c3da2996661e86a9ce7d49fc2928686562:/teshsuite/s4u/activity-test-wait/activity-test-wait.cpp diff --git a/teshsuite/s4u/activity-test-wait/activity-test-wait.cpp b/teshsuite/s4u/activity-test-wait/activity-test-wait.cpp index ef72078d87..c6409090e1 100644 --- a/teshsuite/s4u/activity-test-wait/activity-test-wait.cpp +++ b/teshsuite/s4u/activity-test-wait/activity-test-wait.cpp @@ -12,9 +12,6 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_test, "Messages specific for this s4u example"); -// FIXME: fix failing tests, and remove this macro -#define FAILING if (false) - std::vector all_hosts; /* Helper function easing the testing of actor's ending condition */ @@ -211,8 +208,8 @@ TEST_CASE("Activity test/wait: using ") 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); - FAILING{} RUN_SECTION("exec: actor failure and test / sleep", test_failure_actor); - FAILING RUN_SECTION("exec: host failure and test / sleep", test_failure_host); + // exec: actor failure and test / sleep + // exec: host failure and test / sleep RUN_SECTION("exec: actor failure and test / wait", test_failure_actor); RUN_SECTION("exec: host failure and test / wait", test_failure_host); @@ -225,12 +222,12 @@ TEST_CASE("Activity test/wait: using >") XBT_INFO("#####[ launch next test ]#####"); RUN_SECTION("exec: run and wait<0> once", test_trivial>); - FAILING RUN_SECTION("exec: run and wait<0> many", test_basic>); + // exec: run and wait<0> many RUN_SECTION("exec: cancel and wait<0>", test_cancel>); - FAILING RUN_SECTION("exec: actor failure and wait<0> / sleep", test_failure_actor, waiter_sleep6>); - FAILING RUN_SECTION("exec: host failure and wait<0> / sleep", test_failure_host, waiter_sleep6>); - FAILING RUN_SECTION("exec: actor failure and wait<0> / wait", test_failure_actor, waiter_wait>); - FAILING RUN_SECTION("exec: host failure and wait<0> / wait", test_failure_host, waiter_wait>); + // 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 simgrid::s4u::this_actor::sleep_for(10); assert_cleanup(); @@ -241,12 +238,40 @@ TEST_CASE("Activity test/wait: using >") XBT_INFO("#####[ launch next test ]#####"); RUN_SECTION("exec: run and wait<1> once", test_trivial>); - FAILING RUN_SECTION("exec: run and wait<1> many", test_basic>); + // exec: run and wait<1> many RUN_SECTION("exec: cancel and wait<1>", test_cancel>); - FAILING RUN_SECTION("exec: actor failure and wait<1> / sleep", test_failure_actor, waiter_sleep6>); - FAILING RUN_SECTION("exec: host failure and wait<1> / sleep", test_failure_host, waiter_sleep6>); - FAILING RUN_SECTION("exec: actor failure and wait<1> / wait", test_failure_actor, waiter_wait>); - FAILING RUN_SECTION("exec: host failure and wait<1> / wait", test_failure_host, waiter_wait>); + // 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 + + 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_test + RUN_SECTION("exec: actor failure and test / sleep", test_failure_actor); + RUN_SECTION("exec: host failure and test / sleep", test_failure_host); + + // with tester_wait<0> + RUN_SECTION("exec: run and wait<0> many", test_basic>); + 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>); + + // with tester_test<1> + RUN_SECTION("exec: run and wait<1> many", test_basic>); + 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();