From 02a030a95b27034eedc151488a014950595510de Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 25 Jul 2024 08:53:59 +0200 Subject: turns: dissolve test_support library --- core/tests/glib_test_init.cpp | 28 ++++++++++++++++++++++++++++ core/tests/register_types.cpp | 13 ------------- 2 files changed, 28 insertions(+), 13 deletions(-) create mode 100644 core/tests/glib_test_init.cpp delete mode 100644 core/tests/register_types.cpp (limited to 'core/tests') diff --git a/core/tests/glib_test_init.cpp b/core/tests/glib_test_init.cpp new file mode 100644 index 0000000..b521189 --- /dev/null +++ b/core/tests/glib_test_init.cpp @@ -0,0 +1,28 @@ +#include "turns/core/init.hpp" + +#include +#include + +#include + +#include + +namespace turns::core::tests +{ + + struct glib_test_init : Catch::EventListenerBase + { + using Catch::EventListenerBase::EventListenerBase; + + auto testRunStarting(Catch::TestRunInfo const &) -> void override + { + Gio::init(); + Glib::init(); + + register_types(); + } + }; + + CATCH_REGISTER_LISTENER(glib_test_init); + +} // namespace turns::core::tests \ No newline at end of file diff --git a/core/tests/register_types.cpp b/core/tests/register_types.cpp deleted file mode 100644 index 2ad0628..0000000 --- a/core/tests/register_types.cpp +++ /dev/null @@ -1,13 +0,0 @@ -#include "turns/core/participant.hpp" -#include "turns/core/turn_order.hpp" - -namespace turns::tests -{ - - auto register_types() -> void - { - static_cast(core::participant{}); - static_cast(core::turn_order{}); - } - -} // namespace turns::tests \ No newline at end of file -- cgit v1.2.3