Skip to content

Commit 68f63eb

Browse files
rouaultm-kuhn
authored andcommitted
Try another method to avoid XML serialization issues with QT5 (#3323)
1 parent b642c02 commit 68f63eb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/src/core/testqgsogcutils.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@ class TestQgsOgcUtils : public QObject
3232

3333
void initTestCase()
3434
{
35+
#if QT_VERSION >= 0x050000
3536
// Needed on Qt 5 so that the serialization of XML is consistant among all executions
36-
qputenv( "QT_HASH_SEED", "1" );
37+
extern Q_CORE_EXPORT QBasicAtomicInt qt_qhash_seed;
38+
qt_qhash_seed.store( 0 );
39+
#endif
3740

3841
//
3942
// Runs once before any tests are run

0 commit comments

Comments
 (0)