diff --git a/tests/auto/dbus/qdbusxmlparser/tst_qdbusxmlparser.cpp b/tests/auto/dbus/qdbusxmlparser/tst_qdbusxmlparser.cpp index 35cf9897534..6d58fdf6d05 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("xmlData");