| 68 | } |
| 69 | |
| 70 | void test_basicRun(){ |
| 71 | BasicTask t; |
| 72 | QObject::connect(&t, &Task::finished, [&]{ QVERIFY2(t.wasSuccessful(), "Task finished but was not successful when it should have been."); }); |
| 73 | t.start(); |
| 74 | |
| 75 | QVERIFY2(QTest::qWaitFor([&]() { |
| 76 | return t.isFinished(); |
| 77 | }, 1000), "Task didn't finish as it should."); |
| 78 | } |
| 79 | |
| 80 | void test_basicConcurrentRun(){ |
| 81 | BasicTask t1; |
nothing calls this directly
no test coverage detected