summaryrefslogtreecommitdiffstats
path: root/tests/auto/dbus/qdbusxmlparser/tst_qdbusxmlparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/dbus/qdbusxmlparser/tst_qdbusxmlparser.cpp')
-rw-r--r--tests/auto/dbus/qdbusxmlparser/tst_qdbusxmlparser.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/dbus/qdbusxmlparser/tst_qdbusxmlparser.cpp b/tests/auto/dbus/qdbusxmlparser/tst_qdbusxmlparser.cpp
index 8c94f87fd6..f32037de38 100644
--- a/tests/auto/dbus/qdbusxmlparser/tst_qdbusxmlparser.cpp
+++ b/tests/auto/dbus/qdbusxmlparser/tst_qdbusxmlparser.cpp
@@ -79,9 +79,8 @@ QT_END_NAMESPACE
void tst_QDBusXmlParser::initTestCase()
{
- // If the seed not initialized yet (-1), set it to 0
- // otherwise abort, so we don't get unexplained test failures later.
- QVERIFY(qt_qhash_seed.testAndSetRelaxed(-1, 0));
+ // Always initialize the hash seed to 0 to get reliable test results
+ qt_qhash_seed.store(0);
}
void tst_QDBusXmlParser::parsing_data()