Fix QDateTime auto test

Conversion from UTC to local time will result in same datetime value,
if local time is in UTC.

Change-Id: Icd4ea57cb46cc97bcc8fce4f4e579bf64a4d4b10
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
This commit is contained in:
Bernd Weimer 2014-02-13 12:19:10 +01:00 committed by The Qt Project
parent fa8e6d5083
commit 3cdd0358b3

View File

@ -1629,7 +1629,8 @@ void tst_QDateTime::operator_eqeq_data()
QTest::newRow("data10") << dateTime3 << dateTime3c << true << false;
QTest::newRow("data11") << dateTime3 << dateTime3d << true << false;
QTest::newRow("data12") << dateTime3c << dateTime3d << true << false;
QTest::newRow("data13") << dateTime3 << dateTime3e << false << false;
QTest::newRow("data13") << dateTime3 << dateTime3e
<< (localTimeType == LocalTimeIsUtc) << false;
QTest::newRow("invalid == invalid") << invalidDateTime() << invalidDateTime() << true << false;
QTest::newRow("invalid == valid #1") << invalidDateTime() << dateTime1 << false << false;