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