diff -rup a/tests/src/core/testqgsogcutils.cpp b/tests/src/core/testqgsogcutils.cpp --- a/tests/src/core/testqgsogcutils.cpp 2017-06-18 09:37:34.536042811 +0200 +++ b/tests/src/core/testqgsogcutils.cpp 2017-06-19 16:32:06.405320326 +0200 @@ -32,9 +32,13 @@ class TestQgsOgcUtils : public QObject void initTestCase() { +#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) + qSetGlobalQHashSeed(0); +#else // Needed on Qt 5 so that the serialization of XML is consistent among all executions extern Q_CORE_EXPORT QBasicAtomicInt qt_qhash_seed; qt_qhash_seed.store( 0 ); +#endif // // Runs once before any tests are run