summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/global/qlogging/app
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2012-02-12 01:39:47 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-17 05:25:56 +0100
commitb838170cebc8d1adefc6c8de34e6a39494ffd75e (patch)
tree876b5edca2939ac9c402c0bb81a96b8220b981b5 /tests/auto/corelib/global/qlogging/app
parent2193df65a380e27b839bae3dc63ad7496af575e8 (diff)
QDebug: Add support for %{pid}, %{appname} and %{threadid}
Change-Id: I4add0a374e6524b615c6dc0ecfb010a90075b04f Reviewed-by: Kai Koehne <kai.koehne@nokia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/global/qlogging/app')
-rw-r--r--tests/auto/corelib/global/qlogging/app/main.cpp7
1 files changed, 5 insertions, 2 deletions
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 <qglobal.h>
+#include <QCoreApplication>
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");