Test: Fix tst_offsets for Qt5.2.0 on 64bit

Change-Id: Ie4650820702a83ffb2ca968304babb39084ec3c5
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Christian Stenger
2014-03-21 12:32:23 +01:00
committed by hjk
parent 79497e7fae
commit 4175dc66ec

View File

@@ -76,8 +76,10 @@ void tst_offsets::offsets_data()
QFilePrivate *p = 0;
QTestData &data = QTest::newRow("QFilePrivate::fileName")
<< int((char *)&p->fileName - (char *)p);
if (qtVersion >= 0x50200)
if (qtVersion > 0x50200)
data << 176 << 272;
else if (qtVersion == 0x50200)
data << 176 << 280;
else if (qtVersion >= 0x50000)
data << 180 << 280;
else