Commit fa167587 authored by Martin Flöser's avatar Martin Flöser

[autotests] Fix TestWaylandConnectionThread::testConnectFdNoSocketName

Same as e2be6200 for the next test
method.
parent e2be6200
......@@ -274,16 +274,18 @@ void TestWaylandConnectionThread::testConnectFdNoSocketName()
QVERIFY(connectedSpy.wait());
// create the Registry
Registry registry;
QSignalSpy announcedSpy(&registry, SIGNAL(interfacesAnnounced()));
QScopedPointer<Registry> registry(new Registry);
QSignalSpy announcedSpy(registry.data(), SIGNAL(interfacesAnnounced()));
QVERIFY(announcedSpy.isValid());
registry.create(connection);
EventQueue queue;
queue.setup(connection);
registry.setEventQueue(&queue);
registry.setup();
registry->create(connection);
QScopedPointer<EventQueue> queue(new EventQueue);
queue->setup(connection);
registry->setEventQueue(queue.data());
registry->setup();
QVERIFY(announcedSpy.wait());
registry.reset();
queue.reset();
connection->deleteLater();
connectionThread->quit();
connectionThread->wait();
......
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