summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/global/qlogging/app
diff options
context:
space:
mode:
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");