summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-08-15 11:40:35 +0200
committerMarc Mutz <marc.mutz@qt.io>2023-08-16 04:23:51 +0200
commitfa522eb8becba3243aae8bee191f6f60672434f2 (patch)
treedb7f90f5536eb0e05f0819da902406648f8d67ac /tests/auto/corelib/tools
parentd50fd6acfa967a5afa6bc7aa7e1f61d15dedde6d (diff)
tst_QHashFunctions: use actual seed in consistent() test function
We were only ever testing with a 0 seed, even though the function was called for all QFETCH_GLOBAL seeds. Add the seed. Amends 5e93361888e3d2b03e7b6da19517b44e0239fb47. Pick-to: 6.6 6.5 6.2 5.15 Change-Id: I3c78714ad6fb3f94233789dd2c8884d9b157fa76 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/tools')
-rw-r--r--tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp b/tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp
index 6daf418e7b..6b8c5a76be 100644
--- a/tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp
+++ b/tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp
@@ -64,7 +64,7 @@ void tst_QHashFunctions::consistent()
{
// QString-like
const QString s = QStringLiteral("abcdefghijklmnopqrstuvxyz").repeated(16);
- QCOMPARE(qHash(s), qHash(QStringView(s)));
+ QCOMPARE(qHash(s, seed), qHash(QStringView(s), seed));
}
void tst_QHashFunctions::initTestCase()