From b5d77460c01add8880a75568369696ac24d7fbd3 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Fri, 25 Apr 2014 01:06:27 +0200 Subject: [PATCH] fix cleanup of settings for tests --- tests/auto/testjsonrpc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/auto/testjsonrpc.cpp b/tests/auto/testjsonrpc.cpp index 47993c5e..cb790f33 100644 --- a/tests/auto/testjsonrpc.cpp +++ b/tests/auto/testjsonrpc.cpp @@ -94,11 +94,12 @@ private: void TestJSONRPC::initTestcase() { + QCoreApplication::instance()->setOrganizationName("guh-test"); + // If testcase asserts cleanup won't do. Lets clear any previous test run settings leftovers QSettings settings; settings.clear(); - QCoreApplication::instance()->setOrganizationName("guh-test"); m_commandId = 0; GuhCore::instance();