Skip to content

Commit

Permalink
tst_qdatetime: remove blacklisting and expect failure
Browse files Browse the repository at this point in the history
Amend ac970d4 and use
QEXPECT_FAILURE for systemTimeZone test on 32bit systems.

Task-number: QTBUG-89889
Change-Id: I0eed35df871c69a20bcd7c544fc0e9a48dd8db7b
Reviewed-by: Edward Welbourne <[email protected]>
  • Loading branch information
sapiippo committed Feb 4, 2021
1 parent 5c329f0 commit f30a4f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/auto/corelib/time/qdatetime/BLACKLIST

This file was deleted.

4 changes: 4 additions & 0 deletions tests/auto/corelib/time/qdatetime/tst_qdatetime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f30a4f0

Please sign in to comment.