From b838170cebc8d1adefc6c8de34e6a39494ffd75e Mon Sep 17 00:00:00 2001 From: David Faure Date: Sun, 12 Feb 2012 01:39:47 +0100 Subject: QDebug: Add support for %{pid}, %{appname} and %{threadid} Change-Id: I4add0a374e6524b615c6dc0ecfb010a90075b04f Reviewed-by: Kai Koehne Reviewed-by: Thiago Macieira --- tests/auto/corelib/global/qlogging/app/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/auto/corelib/global/qlogging/app') diff --git a/tests/auto/corelib/global/qlogging/app/main.cpp b/tests/auto/corelib/global/qlogging/app/main.cpp index c26b29ea56..dfa52315c7 100644 --- a/tests/auto/corelib/global/qlogging/app/main.cpp +++ b/tests/auto/corelib/global/qlogging/app/main.cpp @@ -39,15 +39,18 @@ ** ****************************************************************************/ -#include +#include struct T { T() { qDebug("static constructor"); } ~T() { qDebug("static destructor"); } } t; -int main(int, char **) +int main(int argc, char **argv) { + QCoreApplication app(argc, argv); + app.setApplicationName("tst_qlogging"); + qDebug("qDebug"); qWarning("qWarning"); qCritical("qCritical"); -- cgit v1.2.3