Skip to content

Commit

Permalink
Try another method to avoid XML serialization issues with QT5 (#3323)
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault authored and m-kuhn committed Jul 21, 2016
1 parent b642c02 commit 68f63eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/src/core/testqgsogcutils.cpp
Expand Up @@ -32,8 +32,11 @@ class TestQgsOgcUtils : public QObject

void initTestCase()
{
#if QT_VERSION >= 0x050000
// Needed on Qt 5 so that the serialization of XML is consistant among all executions
qputenv( "QT_HASH_SEED", "1" );
extern Q_CORE_EXPORT QBasicAtomicInt qt_qhash_seed;
qt_qhash_seed.store( 0 );
#endif

//
// Runs once before any tests are run
Expand Down

0 comments on commit 68f63eb

Please sign in to comment.