From d0bd252ae1d8862ce922163246cbd960ef849771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Thu, 12 Oct 2017 08:55:09 +0200 Subject: [PATCH] Fix log loading organisation name --- tests/auto/loggingloading/testloggingloading.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/auto/loggingloading/testloggingloading.cpp b/tests/auto/loggingloading/testloggingloading.cpp index 094993b1..896d6c7a 100644 --- a/tests/auto/loggingloading/testloggingloading.cpp +++ b/tests/auto/loggingloading/testloggingloading.cpp @@ -31,6 +31,9 @@ class TestLoggingLoading: public QObject public: TestLoggingLoading(QObject* parent = nullptr); +protected slots: + void initTestCase(); + private slots: void testLogMigration(); void testLogfileRotation(); @@ -41,7 +44,15 @@ private slots: TestLoggingLoading::TestLoggingLoading(QObject *parent): QObject(parent) { + Q_INIT_RESOURCE(loggingloading); + +} + +void TestLoggingLoading::initTestCase() +{ + // Important for settings + QCoreApplication::instance()->setOrganizationName("guh-test"); } void TestLoggingLoading::testLogMigration()