Commit 8ce959ab authored by Kurt Hindenburg's avatar Kurt Hindenburg

Use QThread::sleep instead of sleep/usleep

parent 490f174c
......@@ -62,11 +62,7 @@ void DBusTest::initTestCase()
}
// Wait for above Konsole to finish starting
#if defined(HAVE_USLEEP)
usleep(5 * 1000);
#else
sleep(5);
#endif
QThread::sleep(5);
serviceReply = bus->registeredServiceNames();
QVERIFY2(serviceReply.isValid(), "SessionBus interfaces not available");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment