summaryrefslogtreecommitdiff
path: root/lib/tests/runtime_init.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2025-05-12 16:21:53 +0200
committerFelix Morgner <felix.morgner@gmail.com>2025-05-12 16:21:53 +0200
commita2c73b6ba3c9ea307b0b0eb94c9e769a1f31dc00 (patch)
tree4235e54f0557c76b1226367b8cd5e5f561d7662a /lib/tests/runtime_init.cpp
parent45ef4948db670224c7cc727507f84924bd826002 (diff)
downloadturns-a2c73b6ba3c9ea307b0b0eb94c9e769a1f31dc00.tar.xz
turns-a2c73b6ba3c9ea307b0b0eb94c9e769a1f31dc00.zip
lib: move C library to new directory
Diffstat (limited to 'lib/tests/runtime_init.cpp')
-rw-r--r--lib/tests/runtime_init.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/tests/runtime_init.cpp b/lib/tests/runtime_init.cpp
new file mode 100644
index 0000000..189ef35
--- /dev/null
+++ b/lib/tests/runtime_init.cpp
@@ -0,0 +1,21 @@
+#include "turns-init.h"
+
+#include <catch2/reporters/catch_reporter_event_listener.hpp>
+#include <catch2/reporters/catch_reporter_registrars.hpp>
+
+namespace turns::core::tests
+{
+
+ struct glib_test_init : Catch::EventListenerBase
+ {
+ using Catch::EventListenerBase::EventListenerBase;
+
+ auto testRunStarting(Catch::TestRunInfo const &) -> void override
+ {
+ turns_init();
+ }
+ };
+
+ CATCH_REGISTER_LISTENER(glib_test_init);
+
+} // namespace turns::core::tests \ No newline at end of file