From 2e2edd64c2d0c7391f40f172f83269c117e77872 Mon Sep 17 00:00:00 2001 From: Mario Baranzini Date: Sat, 5 Aug 2017 15:49:24 +0200 Subject: [PATCH] Fix qt qhash seed for QT >= 5.6.0 --- tests/src/core/testqgsogcutils.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/src/core/testqgsogcutils.cpp b/tests/src/core/testqgsogcutils.cpp index 5d61bf45b4b..8ddae98a61f 100644 --- a/tests/src/core/testqgsogcutils.cpp +++ b/tests/src/core/testqgsogcutils.cpp @@ -33,8 +33,13 @@ class TestQgsOgcUtils : public QObject void initTestCase() { // Needed on Qt 5 so that the serialization of XML is consistent among all executions +#if QT_VERSION < QT_VERSION_CHECK( 5, 6 ,0) extern Q_CORE_EXPORT QBasicAtomicInt qt_qhash_seed; qt_qhash_seed.store( 0 ); +#else + qSetGlobalQHashSeed( 0 ); +#endif + // // Runs once before any tests are run