telepathy-qt: Fix TestKeyFile: sort list before comparing
David Edmundson
davidedmundson at kemper.freedesktop.org
Mon Jan 27 15:11:49 PST 2014
Module: telepathy-qt
Branch: master
Commit: 15ddf0963b75f09b1ed6558dd0472058e7eb9914
URL: http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=15ddf0963b75f09b1ed6558dd0472058e7eb9914
Author: Martin Kampas <martin.kampas at tieto.com>
Date: Fri Nov 8 13:54:19 2013 +0100
Fix TestKeyFile: sort list before comparing
Reviewed-by: David Edmundson <davidedmundson at kde.org>
---
tests/key-file.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/key-file.cpp b/tests/key-file.cpp
index 1d7b439..ebcf1e7 100644
--- a/tests/key-file.cpp
+++ b/tests/key-file.cpp
@@ -31,7 +31,9 @@ void TestKeyFile::testKeyFile()
KeyFile keyFile(QLatin1String("test-key-file.ini"));
QCOMPARE(keyFile.status(), KeyFile::NoError);
- QCOMPARE(keyFile.allGroups(),
+ QStringList allGroups = keyFile.allGroups();
+ allGroups.sort();
+ QCOMPARE(allGroups,
QStringList() << QString() <<
QLatin1String("test group 1") <<
QLatin1String("test group 2"));
More information about the telepathy-commits
mailing list