diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-06-05 18:33:29 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-06-05 18:33:29 +0200 |
| commit | fe40c3fc1f371d2da7918365c6dd6ec8a6c40dd4 (patch) | |
| tree | 7cc8e64e94396582a27387236736871add983467 /lib/tests/glib-test.cpp | |
| parent | 14c2a945157d3e790506d97a5dc6f07b7e38ae26 (diff) | |
| download | turns-fe40c3fc1f371d2da7918365c6dd6ec8a6c40dd4.tar.xz turns-fe40c3fc1f371d2da7918365c6dd6ec8a6c40dd4.zip | |
lib: rename test initializers
Diffstat (limited to 'lib/tests/glib-test.cpp')
| -rw-r--r-- | lib/tests/glib-test.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
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 <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + +#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 : 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 |
