tests: respect naming conventions and improve nesting of some test suites
Change-Id: I255c27b552b32570871a9d5f8bda814ba8723c80
Refs: #2497
diff --git a/tests/unit-tests/util/scheduler.t.cpp b/tests/unit-tests/util/scheduler.t.cpp
index 72db284..8189f01 100644
--- a/tests/unit-tests/util/scheduler.t.cpp
+++ b/tests/unit-tests/util/scheduler.t.cpp
@@ -48,6 +48,8 @@
BOOST_AUTO_TEST_SUITE(Util)
BOOST_FIXTURE_TEST_SUITE(TestScheduler, SchedulerFixture)
+BOOST_AUTO_TEST_SUITE(General)
+
BOOST_AUTO_TEST_CASE(Events)
{
size_t count1 = 0;
@@ -97,6 +99,9 @@
{
EventId i;
scheduler.cancelEvent(i);
+
+ // avoid "test case [...] did not check any assertions" message from Boost.Test
+ BOOST_CHECK(true);
}
BOOST_AUTO_TEST_CASE(SelfCancel)
@@ -233,8 +238,13 @@
eid = sched.scheduleEvent(time::milliseconds(10), []{});
sched.cancelAllEvents();
eid.cancel(); // should not crash
+
+ // avoid "test case [...] did not check any assertions" message from Boost.Test
+ BOOST_CHECK(true);
}
+BOOST_AUTO_TEST_SUITE_END() // General
+
BOOST_AUTO_TEST_SUITE(EventId)
using scheduler::EventId;
@@ -243,6 +253,9 @@
{
EventId eid;
eid = nullptr;
+
+ // avoid "test case [...] did not check any assertions" message from Boost.Test
+ BOOST_CHECK(true);
}
BOOST_AUTO_TEST_CASE(Compare)