From 9f1c5945b776b730aeaa597e6ba5d0a406e88e3a 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. Change-Id: I3c78714ad6fb3f94233789dd2c8884d9b157fa76 Reviewed-by: Thiago Macieira (cherry picked from commit fa522eb8becba3243aae8bee191f6f60672434f2) Reviewed-by: Qt Cherry-pick Bot --- 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 6daf418e7bd..6b8c5a76beb 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()