[autotests] QSkip XWaylandInputTest if we don't have at least Xwayland 1.18

The test seems to fail with too old Xwayland, so let's skip it.
This commit is contained in:
Martin Gräßlin 2016-08-23 11:25:57 +02:00
parent 3c235e63cc
commit 9aa6b2c1e5

View file

@ -135,6 +135,9 @@ void XWaylandInputTest::testPointerEnterLeave()
// create the test window
QScopedPointer<xcb_connection_t, XcbConnectionDeleter> c(xcb_connect(nullptr, nullptr));
QVERIFY(!xcb_connection_has_error(c.data()));
if (xcb_get_setup(c.data())->release_number < 1800000) {
QSKIP("XWayland 1.18 required");
}
X11EventReaderHelper eventReader(c.data());
QSignalSpy enteredSpy(&eventReader, &X11EventReaderHelper::entered);
QVERIFY(enteredSpy.isValid());