diff options
author | Liang Qi <liang.qi@qt.io> | 2022-02-11 13:32:22 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2022-02-17 00:34:50 +0100 |
commit | ae9fefe3c89fd5720ccaad0687f125e32f7c3fe6 (patch) | |
tree | d351d7919f36e43c9cef9e251e7eb0ab4e4443df /tests/auto/gui | |
parent | 1cc0494f7dbb0731533c7d691685bb50d3e1dd1a (diff) |
tests: XFAIL tst_QInputDevice::multiSeatDevices() on Wayland
Task-number: QTBUG-100790
Pick-to: 6.3 6.2
Change-Id: Ieec4791e4322286fedeeabacc43b9cb84ea27962
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/auto/gui')
-rw-r--r-- | tests/auto/gui/kernel/qinputdevice/tst_qinputdevice.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/gui/kernel/qinputdevice/tst_qinputdevice.cpp b/tests/auto/gui/kernel/qinputdevice/tst_qinputdevice.cpp index 077a44b229..06887420cf 100644 --- a/tests/auto/gui/kernel/qinputdevice/tst_qinputdevice.cpp +++ b/tests/auto/gui/kernel/qinputdevice/tst_qinputdevice.cpp @@ -49,6 +49,11 @@ void tst_QInputDevice::initTestCase() { } +static bool isPlatformWayland() +{ + return !QGuiApplication::platformName().compare(QLatin1String("wayland"), Qt::CaseInsensitive); +} + void tst_QInputDevice::multiSeatDevices() { QWindowSystemInterface::registerInputDevice(new QInputDevice("seat 1 kbd", 1000, QInputDevice::DeviceType::Keyboard, "seat 1", this)); @@ -65,6 +70,8 @@ void tst_QInputDevice::multiSeatDevices() QVERIFY(QInputDevicePrivate::fromId(2010)); QVERIFY(!QInputDevicePrivate::fromId(2010)->hasCapability(QInputDevice::Capability::Scroll)); QVERIFY(QInputDevice::primaryKeyboard()); + if (isPlatformWayland()) + QEXPECT_FAIL("", "This fails on Wayland, see QTBUG-100790.", Abort); QCOMPARE(QInputDevice::primaryKeyboard()->systemId(), qint64(1) << 33); QVERIFY(QPointingDevice::primaryPointingDevice()); QCOMPARE(QPointingDevice::primaryPointingDevice()->systemId(), 1); |