From fe40c3fc1f371d2da7918365c6dd6ec8a6c40dd4 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 5 Jun 2025 18:33:29 +0200 Subject: lib: rename test initializers --- lib/tests/glib-test.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 lib/tests/glib-test.cpp (limited to 'lib/tests/glib-test.cpp') diff --git a/lib/tests/glib-test.cpp b/lib/tests/glib-test.cpp new file mode 100644 index 0000000..86fb5f9 --- /dev/null +++ b/lib/tests/glib-test.cpp @@ -0,0 +1,26 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner + * SPDX-License-Identifier: LGPL-2.1-only + */ + +#include "turns-init.h" + +#include +#include + +namespace turns::core::tests +{ + + struct glib_test : Catch::EventListenerBase + { + using Catch::EventListenerBase::EventListenerBase; + + auto testRunStarting(Catch::TestRunInfo const &) -> void override + { + turns_init(); + } + }; + + CATCH_REGISTER_LISTENER(glib_test); + +} // namespace turns::core::tests \ No newline at end of file -- cgit v1.2.3