| 125 | } |
| 126 | |
| 127 | void test_basicRun() |
| 128 | { |
| 129 | BasicTask t; |
| 130 | QObject::connect(&t, &Task::finished, |
| 131 | [&] { QVERIFY2(t.wasSuccessful(), "Task finished but was not successful when it should have been."); }); |
| 132 | t.start(); |
| 133 | |
| 134 | QVERIFY2(QTest::qWaitFor([&]() { return t.isFinished(); }, 1000), "Task didn't finish as it should."); |
| 135 | } |
| 136 | |
| 137 | void test_basicConcurrentRun() |
| 138 | { |
nothing calls this directly
no test coverage detected