1 /** ***** QxtJob test ***** */
4 class Q43Thread : public QThread{public:void run(){exec();}}; /// qt < 4.3 backwards compatibility
8 #include <qxtsignalwaiter.h>
12 class TestJob : public QxtJob
22 qDebug("job on on %p",QThread::currentThread ());
27 class QxtJobTest : public QObject
42 QSignalSpy spy(&l, SIGNAL(done()));
43 QxtSignalWaiter w(&l,SIGNAL(done()));
48 QCOMPARE(spy.count(), 1);
56 QxtSignalWaiter w(&l,SIGNAL(done()));
62 void cleanupTestCase()
70 int main(int argc, char ** argv)
72 QCoreApplication app(argc,argv);
74 return QTest::qExec(&test1,argc,argv);