aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2014-07-01 10:37:15 +0200
committerDavid Faure <faure@kde.org>2014-07-01 10:37:15 +0200
commitd0b44bde17af6404f08a8bf58b11a5422bdc9688 (patch)
tree1d0647ea2a1e251e8059f1cf934acd7bded9423e
parent054d849879647fd4cf90c4f622877d3a11720bb2 (diff)
downloadkconfig-d0b44bde17af6404f08a8bf58b11a5422bdc9688.tar.gz
kconfig-d0b44bde17af6404f08a8bf58b11a5422bdc9688.tar.bz2
Fix unittest: must sync in main thread for other threads to see the changes
-rw-r--r--autotests/kconfigtest.cpp1
1 files changed, 1 insertions, 0 deletions
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");