Switch all auto tests to QTEST_GUILESS_MAIN

We don't need a QGuiApplication in the tests.
This commit is contained in:
Martin Gräßlin 2014-09-23 12:00:17 +02:00
parent f72e4a4d6f
commit eb9e5a178f
10 changed files with 10 additions and 10 deletions

View file

@ -230,5 +230,5 @@ void TestShmPool::testDestroy()
m_shmPool->destroy();
}
QTEST_MAIN(TestShmPool)
QTEST_GUILESS_MAIN(TestShmPool)
#include "test_shm_pool.moc"

View file

@ -190,5 +190,5 @@ void TestWaylandConnectionThread::testConnectionDieing()
QCOMPARE(connectedSpy.count(), 1);
}
QTEST_MAIN(TestWaylandConnectionThread)
QTEST_GUILESS_MAIN(TestWaylandConnectionThread)
#include "test_wayland_connection_thread.moc"

View file

@ -142,5 +142,5 @@ void TestWaylandFullscreenShell::testRegistryCreate()
QVERIFY(fullscreenShell->isValid());
}
QTEST_MAIN(TestWaylandFullscreenShell)
QTEST_GUILESS_MAIN(TestWaylandFullscreenShell)
#include "test_wayland_fullscreen_shell.moc"

View file

@ -321,5 +321,5 @@ void TestWaylandOutput::testTransform()
QCOMPARE(output->transform(), Output::Transform::Normal);
}
QTEST_MAIN(TestWaylandOutput)
QTEST_GUILESS_MAIN(TestWaylandOutput)
#include "test_wayland_output.moc"

View file

@ -274,5 +274,5 @@ void TestWaylandRegistry::testDestroy()
registry.destroy();
}
QTEST_MAIN(TestWaylandRegistry)
QTEST_GUILESS_MAIN(TestWaylandRegistry)
#include "test_wayland_registry.moc"

View file

@ -565,5 +565,5 @@ void TestWaylandSeat::testDestroy()
p->destroy();
}
QTEST_MAIN(TestWaylandSeat)
QTEST_GUILESS_MAIN(TestWaylandSeat)
#include "test_wayland_seat.moc"

View file

@ -354,5 +354,5 @@ void TestWaylandShell::testCast()
QCOMPARE((wl_shell*)s2, wlShell);
}
QTEST_MAIN(TestWaylandShell)
QTEST_GUILESS_MAIN(TestWaylandShell)
#include "test_wayland_shell.moc"

View file

@ -367,5 +367,5 @@ void TestWaylandSurface::testDestroy()
s->destroy();
}
QTEST_MAIN(TestWaylandSurface)
QTEST_GUILESS_MAIN(TestWaylandSurface)
#include "test_wayland_surface.moc"

View file

@ -101,5 +101,5 @@ void TestWaylandServerDisplay::testAddRemoveOutput()
QVERIFY(display.outputs().isEmpty());
}
QTEST_MAIN(TestWaylandServerDisplay)
QTEST_GUILESS_MAIN(TestWaylandServerDisplay)
#include "test_display.moc"

View file

@ -170,5 +170,5 @@ void TestWaylandServerSeat::testDestroyThroughTerminate()
QVERIFY(!destroyedSpy.isEmpty());
}
QTEST_MAIN(TestWaylandServerSeat)
QTEST_GUILESS_MAIN(TestWaylandServerSeat)
#include "test_seat.moc"