From d0b44bde17af6404f08a8bf58b11a5422bdc9688 Mon Sep 17 00:00:00 2001 From: David Faure Date: Tue, 1 Jul 2014 10:37:15 +0200 Subject: Fix unittest: must sync in main thread for other threads to see the changes --- autotests/kconfigtest.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'autotests/kconfigtest.cpp') diff --git a/autotests/kconfigtest.cpp b/autotests/kconfigtest.cpp index 3156aa5e..5f2c7989 100644 --- a/autotests/kconfigtest.cpp +++ b/autotests/kconfigtest.cpp @@ -97,6 +97,7 @@ void KConfigTest::initTestCase() KSharedConfigPtr mainConfig = KSharedConfig::openConfig(); mainConfig->group("Main").writeEntry("Key", "Value"); + mainConfig->sync(); KConfig sc(TEST_SUBDIR "kconfigtest"); -- cgit v1.2.1