diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/testpreferences.cpp | 28 | ||||
-rw-r--r-- | tests/testpreferences.h | 15 |
3 files changed, 0 insertions, 45 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 12bd1ee56..fd1be7ea6 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -96,7 +96,6 @@ TEST(TestPlan testplan.cpp) TEST(TestDiveSiteDuplication testdivesiteduplication.cpp) TEST(TestRenumber testrenumber.cpp) TEST(TestGitStorage testgitstorage.cpp) -TEST(TestPreferences testpreferences.cpp) TEST(TestPicture testpicture.cpp) TEST(TestMerge testmerge.cpp) TEST(TestTagList testtaglist.cpp) @@ -128,7 +127,6 @@ add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} TestGitStorage TestPlan TestDiveSiteDuplication - TestPreferences TestRenumber TestPicture TestMerge diff --git a/tests/testpreferences.cpp b/tests/testpreferences.cpp deleted file mode 100644 index 2171ba989..000000000 --- a/tests/testpreferences.cpp +++ /dev/null @@ -1,28 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -#include "testpreferences.h" - -#include "core/subsurface-qt/SettingsObjectWrapper.h" - -#include <QDate> -#include <QtTest> - -#define TEST(METHOD, VALUE) \ - QCOMPARE(METHOD, VALUE); \ - pref->sync(); \ - pref->load(); \ - QCOMPARE(METHOD, VALUE); - -void TestPreferences::initTestCase() -{ - QCoreApplication::setOrganizationName("Subsurface"); - QCoreApplication::setOrganizationDomain("subsurface.hohndel.org"); - QCoreApplication::setApplicationName("SubsurfaceTestPreferences"); -} - -void TestPreferences::testPreferences() -{ - auto pref = SettingsObjectWrapper::instance(); - pref->load(); -} - -QTEST_MAIN(TestPreferences) diff --git a/tests/testpreferences.h b/tests/testpreferences.h deleted file mode 100644 index 10c875484..000000000 --- a/tests/testpreferences.h +++ /dev/null @@ -1,15 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -#ifndef TESTPREFERENCES_H -#define TESTPREFERENCES_H - -#include <QTest> -#include <functional> - -class TestPreferences : public QObject { - Q_OBJECT -private slots: - void initTestCase(); - void testPreferences(); -}; - -#endif // TESTPREFERENCES_H |