summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2022-02-11 13:32:22 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-02-17 01:44:08 +0000
commitb8e6256b435efde4655678702e752f6ca27dcf6f (patch)
treed964c49a594fbb961fe4545b096f7a4ee14d2224
parent305f63b707b81a75f595fb0ccbbf216b806f0b4b (diff)
tests: XFAIL tst_QInputDevice::multiSeatDevices() on Wayland
Task-number: QTBUG-100790 Change-Id: Ieec4791e4322286fedeeabacc43b9cb84ea27962 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit ae9fefe3c89fd5720ccaad0687f125e32f7c3fe6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tests/auto/gui/kernel/qinputdevice/tst_qinputdevice.cpp7
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);