[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdecore/tests
From: David Faure <faure () kde ! org>
Date: 2007-10-04 17:31:12
Message-ID: 1191519072.246403.19139.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 721136 by dfaure:
deleteGroup even works on the default group, good.
M +15 -0 kconfigtest.cpp
--- trunk/KDE/kdelibs/kdecore/tests/kconfigtest.cpp #721135:721136
@@ -417,6 +417,13 @@
#endif
defaultGroup.deleteGroup();
+ sc.sync();
+
+ // Test if deleteGroup worked
+#ifdef Q_OS_UNIX
+ lines = readLines();
+ QVERIFY(lines.first() != QByteArray("TestKey=defaultGroup\n"));
+#endif
}
void KConfigTest::testEmptyGroup()
@@ -433,9 +440,17 @@
#ifdef Q_OS_UNIX
QList<QByteArray> lines = readLines();
QVERIFY(!lines.contains("[]")); // there's no support for the [] group, in fact.
+ QCOMPARE(lines.first(), QByteArray("TestKey=emptyGroup\n"));
#endif
emptyGroup.deleteGroup();
+ sc.sync();
+
+ // Test if deleteGroup worked
+#ifdef Q_OS_UNIX
+ lines = readLines();
+ QVERIFY(lines.first() != QByteArray("TestKey=defaultGroup\n"));
+#endif
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic