From fa522eb8becba3243aae8bee191f6f60672434f2 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 15 Aug 2023 11:40:35 +0200 Subject: [PATCH] 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 --- tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()