summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qnodebug/tst_qnodebug.cpp
diff options
context:
space:
mode:
authorJohn Layt <jlayt@kde.org>2013-03-21 19:44:33 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-06 18:08:56 +0200
commit94a757665885443eaa199649492855aa75d4c5ec (patch)
tree902125f6b4d7b53ba2f3181344230a9a9151c971 /tests/auto/corelib/io/qnodebug/tst_qnodebug.cpp
parent0771075f664e1a49e586357bc86c915042e440eb (diff)
QDateTime - Change debug output to ISO Format
Change the debug format from Qt::TextDate to a more detailed ISO style format including better time spec output. [ChangeLog][QtCore][QDateTime] The debug datastream is now an ISO-like format instead of Qt::TextDate Change-Id: Iddbb8199c3bfbf7bca845482617e7a85da43259d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/io/qnodebug/tst_qnodebug.cpp')
-rw-r--r--tests/auto/corelib/io/qnodebug/tst_qnodebug.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/corelib/io/qnodebug/tst_qnodebug.cpp b/tests/auto/corelib/io/qnodebug/tst_qnodebug.cpp
index f1df6187d0..becff75836 100644
--- a/tests/auto/corelib/io/qnodebug/tst_qnodebug.cpp
+++ b/tests/auto/corelib/io/qnodebug/tst_qnodebug.cpp
@@ -72,7 +72,9 @@ void tst_QNoDebug::noDebugOutput() const
void tst_QNoDebug::streaming() const
{
QDateTime dt(QDate(1,2,3),QTime(4,5,6));
- QTest::ignoreMessage(QtWarningMsg, qPrintable(QString::fromLatin1("QDateTime(\"%1\") ").arg(dt.toString())));
+ QString debugString = dt.toString(QStringLiteral("yyyy-MM-dd HH:mm:ss.zzz t"))
+ + QStringLiteral(" Qt::LocalTime");
+ QTest::ignoreMessage(QtWarningMsg, qPrintable(QString::fromLatin1("QDateTime(\"%1\") ").arg(debugString)));
qWarning() << dt;
}