tst_QDBusXmlParser: make XML attribute order deterministic
Avoid QHash randomization so that the order of the XML attributes is stable This was causing intermittent failures. Change-Id: I4cc0dba4b0c2ec36601f3b06fb17ff80005cc9fb Reviewed-by: Sean Harmer <sean.harmer@kdab.com>bb10
parent
d64c4662f0
commit
aa434bc908
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue