summaryrefslogtreecommitdiffstats
path: root/tests
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-16 23:35:00 +0000
commit73182c18291b6daa9e707a4cf58e5403fded471d (patch)
treebeac4d1c5b0b35d5ec3cfb6c620d7925db996b7d /tests
parent89e5b171355b67816b497d84ceb6e6561784d416 (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>
Diffstat (limited to 'tests')
-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);