From bfc04b22d3f80f43787e86ee4cc6a39436fa039c Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Mon, 28 Mar 2011 11:28:39 +1000 Subject: tst_qlocale: improve failure message in tst_QLocale::macDefaultLocale Use QVERIFY2 to output more details about this failure. Reviewed-by: Toby Tomkins --- tests/auto/qlocale/tst_qlocale.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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")); -- cgit v0.12