summaryrefslogtreecommitdiffstats
path: root/tests/auto/dbus
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/dbus')
-rw-r--r--tests/auto/dbus/qdbusxmlparser/tst_qdbusxmlparser.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/dbus/qdbusxmlparser/tst_qdbusxmlparser.cpp b/tests/auto/dbus/qdbusxmlparser/tst_qdbusxmlparser.cpp
index 35cf989753..6d58fdf6d0 100644
--- a/tests/auto/dbus/qdbusxmlparser/tst_qdbusxmlparser.cpp
+++ b/tests/auto/dbus/qdbusxmlparser/tst_qdbusxmlparser.cpp
@@ -58,6 +58,7 @@ private:
QString clean_xml(const QString&);
private slots:
+ void initTestCase();
void parsing_data();
void parsing();
void parsingWithDoctype_data();
@@ -71,6 +72,12 @@ private slots:
void properties();
};
+void tst_QDBusXmlParser::initTestCase()
+{
+ // Avoid QHash randomization so that the order of the XML attributes is stable
+ qputenv("QT_HASH_SEED", "123");
+}
+
void tst_QDBusXmlParser::parsing_data()
{
QTest::addColumn<QString>("xmlData");