aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/testpreferences.cpp6
-rw-r--r--tests/testpreferences.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/testpreferences.cpp b/tests/testpreferences.cpp
index c3de709ea..c01e9ec14 100644
--- a/tests/testpreferences.cpp
+++ b/tests/testpreferences.cpp
@@ -11,6 +11,12 @@ pref->sync(); \
pref->load(); \
QCOMPARE(METHOD, VALUE);
+void TestPreferences::initTestCase()
+{
+ QCoreApplication::setOrganizationName("Subsurface");
+ QCoreApplication::setOrganizationDomain("subsurface.hohndel.org");
+ QCoreApplication::setApplicationName("SubsurfaceTestPreferences");
+}
void TestPreferences::testPreferences()
{
diff --git a/tests/testpreferences.h b/tests/testpreferences.h
index 9b2c44ab3..c97efb4de 100644
--- a/tests/testpreferences.h
+++ b/tests/testpreferences.h
@@ -8,6 +8,7 @@ class TestPreferences : public QObject
{
Q_OBJECT
private slots:
+ void initTestCase();
void testPreferences();
};