Commit 88549467 authored by Christian Stenger's avatar Christian Stenger
Browse files

Test: Fix filename offset tests on Win



Change-Id: Id0cc5e4f23a8bd67b9ff1052d7fcabed92c192bd
Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
parent 460acc37
......@@ -78,11 +78,19 @@ void tst_offsets::offsets_data()
QTestData &data = QTest::newRow("QFilePrivate::fileName")
<< int((char *)&p->fileName - (char *)p);
if (qtVersion > 0x50200)
#ifdef Q_OS_WIN
data << 180 << 272;
#else
data << 176 << 272;
#endif
else if (qtVersion >= 0x50000)
data << 176 << 280;
else
#ifdef Q_OS_WIN
data << 144 << 232;
#else
data << 140 << 232;
#endif
}
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment