tests: remove testpreferences

remove the now empty testpreferences

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-08-14 18:17:15 +02:00 committed by Dirk Hohndel
parent a781d3a44e
commit bac6456ee6
3 changed files with 0 additions and 45 deletions

View file

@ -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

View file

@ -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)

View file

@ -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