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 5e93361888.

Pick-to: 6.6 6.5 6.2 5.15
Change-Id: I3c78714ad6fb3f94233789dd2c8884d9b157fa76
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Marc Mutz 2023-08-15 11:40:35 +02:00
parent d50fd6acfa
commit fa522eb8be
1 changed files with 1 additions and 1 deletions

View File

@ -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()