tst_qobject: Run as console application.

Change-Id: If3049249cf8ceeb0985d158209e217455bfc3c47
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
This commit is contained in:
Friedemann Kleint 2012-01-24 16:24:24 +01:00 committed by Qt by Nokia
parent 0fb5c7e71d
commit 4fa2d51cf1
2 changed files with 3 additions and 3 deletions

View File

@ -3364,7 +3364,7 @@ void tst_QObject::deleteQObjectWhenDeletingEvent()
};
QObject o;
QGuiApplication::postEvent(&o, new MyEvent);
QCoreApplication::postEvent(&o, new MyEvent);
QCoreApplication::removePostedEvents(&o); // here you would get a deadlock
}

View File

@ -1,6 +1,6 @@
CONFIG += testcase
CONFIG += testcase console
TARGET = tst_qobject
QT = core-private network gui testlib
QT = core-private network testlib
SOURCES = tst_qobject.cpp
# this is here for a reason, moc_oldnormalizedobject.cpp is not auto-generated, it was generated by