Hi Lucas, > I'm trying to write Unit Tests. > Because I have to wait till some data arrived from network and a signal > triggers, I want to use qWait. > > But everytime I use qWait I get this error, even when there is nothing but > qWait in the code. > > QCOMPARE, QVERIFY etc are working, > I have added testlib to my .pro file. > > Any ideas what I'm doing wrong? The assertion indicates that your test program does not have an instance of the QCoreApplication class. Most likely this means that you are using the QTEST_APPLESS_MAIN macro to generate the test program's main() or that you have written your own main() and it does not create a QCoreApplication.
You can propbably fix this by using the QTEST_MAIN macro to generate your main(). -- Jason
<<attachment: PBrush 1.jpg>>
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest