tst_qdatetime: remove blacklisting and expect failure

Amend ac970d48fd and use
QEXPECT_FAILURE for systemTimeZone test on 32bit systems.

Task-number: QTBUG-89889
Change-Id: I0eed35df871c69a20bcd7c544fc0e9a48dd8db7b
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
bb10
Samuli Piippo 2021-01-28 16:57:43 +02:00
parent 5c329f023a
commit f30a4f0be7
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +0,0 @@
# QTBUG-87663
[systemTimeZoneChange]
android
b2qt 32bit

View File

@ -3826,6 +3826,10 @@ void tst_QDateTime::systemTimeZoneChange() const
useZone.reset(QByteArray("IST-05:30"));
QCOMPARE(localDate, QDateTime(QDate(2012, 6, 1), QTime(2, 15, 30), Qt::LocalTime));
if constexpr (sizeof(qsizetype) == 4)
QEXPECT_FAIL("", "fails on 32-bit systems (QTBUG-89889)", Continue);
QVERIFY(localMsecs != localDate.toMSecsSinceEpoch());
QCOMPARE(utcDate, QDateTime(QDate(2012, 6, 1), QTime(2, 15, 30), Qt::UTC));
QCOMPARE(utcDate.toMSecsSinceEpoch(), utcMsecs);