summaryrefslogtreecommitdiffstats
path: root/tests/auto/qlocale
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2011-03-28 01:28:39 (GMT)
committerRohan McGovern <rohan.mcgovern@nokia.com>2011-03-28 01:49:45 (GMT)
commitbfc04b22d3f80f43787e86ee4cc6a39436fa039c (patch)
tree45575eca8d255e519562ab0279d9582736dee7a2 /tests/auto/qlocale
parent6567e793d0f1388ef6389ef91ace1ed8dc726019 (diff)
downloadQt-bfc04b22d3f80f43787e86ee4cc6a39436fa039c.zip
Qt-bfc04b22d3f80f43787e86ee4cc6a39436fa039c.tar.gz
Qt-bfc04b22d3f80f43787e86ee4cc6a39436fa039c.tar.bz2
tst_qlocale: improve failure message in tst_QLocale::macDefaultLocale
Use QVERIFY2 to output more details about this failure. Reviewed-by: Toby Tomkins
Diffstat (limited to 'tests/auto/qlocale')
-rw-r--r--tests/auto/qlocale/tst_qlocale.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/qlocale/tst_qlocale.cpp b/tests/auto/qlocale/tst_qlocale.cpp
index 16846de..3b62d64 100644
--- a/tests/auto/qlocale/tst_qlocale.cpp
+++ b/tests/auto/qlocale/tst_qlocale.cpp
@@ -1107,7 +1107,11 @@ void tst_QLocale::macDefaultLocale()
expectedGMTSpecifier.append(QString("0%1").arg(qAbs(diff)));
else
expectedGMTSpecifier.append(QString("%1").arg(qAbs(diff)));
- QVERIFY(timeString.contains(expectedGMTSpecifier));
+ QVERIFY2(timeString.contains(expectedGMTSpecifier), qPrintable(
+ QString("timeString `%1', expectedGMTSpecifier `%2'")
+ .arg(timeString)
+ .arg(expectedGMTSpecifier)
+ ));
}
QCOMPARE(locale.dayName(1), QString("Monday"));
QCOMPARE(locale.dayName(7), QString("Sunday"));