From 63aa6b86c211828c47027145ff405fd7e3fc5c3a Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sun, 8 Jun 2025 14:53:13 +0200 Subject: gui: wrap tests in application --- gui/tests/gtk-test.cpp | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 gui/tests/gtk-test.cpp (limited to 'gui/tests/gtk-test.cpp') 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 - * SPDX-License-Identifier: LGPL-2.1-only - */ - -#include "gtk-test.hpp" - -#include - -#include - -#include - -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 -- cgit v1.2.3