diff options
Diffstat (limited to 'gui/tests/gtk-test.cpp')
| -rw-r--r-- | gui/tests/gtk-test.cpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/gui/tests/gtk-test.cpp b/gui/tests/gtk-test.cpp deleted file mode 100644 index 385f772..0000000 --- a/gui/tests/gtk-test.cpp +++ /dev/null @@ -1,39 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> - * SPDX-License-Identifier: LGPL-2.1-only - */ - -#include "gtk-test.hpp" - -#include <turnsmm/init.hpp> - -#include <libintl.h> - -#include <clocale> - -namespace Turns::gui::tests -{ - - auto gtk_test::testRunStarting(Catch::TestRunInfo const &) -> void - { - setlocale(LC_ALL, ""); - bindtextdomain("turns", TESTLOCALEDIR); - bind_textdomain_codeset("turns", "UTF-8"); - textdomain("turns"); - - application = Adwaita::Application::create("ch.arknet.turns.tests.ui"); - Turns::init(); - } - - auto gtk_test::testRunEnded(Catch::TestRunStats const &) -> void - { - application->quit(); - application.reset(); - } - - auto gtk_test::testCaseEnded(Catch::TestCaseStats const &) -> void - { - setlocale(LC_ALL, ""); - } - -} // namespace Turns::Gui::tests
\ No newline at end of file |
