diff options
author | jan Iversen <jani@apache.org> | 2018-08-14 18:17:15 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-08-15 16:11:39 -0700 |
commit | bac6456ee6b77231d23b20150d0f0cdfc5398784 (patch) | |
tree | e10f34287c4f2b4dc1b8c43594e69d5c0c52b196 /tests | |
parent | a781d3a44ea136af4e166e9018644166a9755f54 (diff) | |
download | subsurface-bac6456ee6b77231d23b20150d0f0cdfc5398784.tar.gz |
tests: remove testpreferences
remove the now empty testpreferences
Signed-off-by: Jan Iversen <jani@apache.org>
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 |