diff options
author | Shane Kearns <shane.kearns@sosco.com> | 2009-11-03 12:51:49 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@sosco.com> | 2009-11-03 12:55:23 (GMT) |
commit | 95f7076937065a78029fc50d506fba58f8c6199c (patch) | |
tree | 79c5ccc5b5fa845a9ff692fef6e5f4e3721590be /tests/auto/qdatetime | |
parent | 5919feba122d0e5a696a72a3d1e2eff6928824f8 (diff) | |
download | Qt-95f7076937065a78029fc50d506fba58f8c6199c.zip Qt-95f7076937065a78029fc50d506fba58f8c6199c.tar.gz Qt-95f7076937065a78029fc50d506fba58f8c6199c.tar.bz2 |
Fix qdatetime autotest regression
My previous addition to the test case to validate local time was too
strict for all platforms.
Reviewed-by: Paul
Diffstat (limited to 'tests/auto/qdatetime')
-rw-r--r-- | tests/auto/qdatetime/tst_qdatetime.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qdatetime/tst_qdatetime.cpp b/tests/auto/qdatetime/tst_qdatetime.cpp index c53780e..1140402 100644 --- a/tests/auto/qdatetime/tst_qdatetime.cpp +++ b/tests/auto/qdatetime/tst_qdatetime.cpp @@ -450,11 +450,12 @@ void tst_QDateTime::toString_enumformat() qDebug() << str3; QVERIFY(!str3.isEmpty()); //check for date/time components in any order - QVERIFY(str3.contains("1995")); + //year may be 2 or 4 digits + QVERIFY(str3.contains("95")); //day and month may be in numeric or word form QVERIFY(str3.contains("12")); QVERIFY(str3.contains("34")); - QVERIFY(str3.contains("56")); + //seconds may be absent } void tst_QDateTime::addDays() |