test: Advertise scroll/button interfaces in test_connect_receive_seat

This test was checking for the capabilities for `EI_SCROLL` and
`EI_BUTTON`, but not advertising those interfaces initially. Presumably
this was unintentional, given there's no comment that it's intentionally
advertising some protocols but not others.

Also, should the test have failed to find the capabilities when it
didn't advertise the protocol to to start with? This change just fixes
the test, anyway.

This was causing the test to fail for `reis` CI in a proposed change in
https://github.com/ids1024/reis/pull/11.

Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/352>
This commit is contained in:
Ian Douglas Scott 2025-07-31 19:33:26 -07:00
parent 45c526bcc9
commit 500ad0510f

View file

@ -571,6 +571,8 @@ class TestEiProtocol:
InterfaceName.EI_POINTER_ABSOLUTE,
InterfaceName.EI_KEYBOARD,
InterfaceName.EI_TOUCHSCREEN,
InterfaceName.EI_SCROLL,
InterfaceName.EI_BUTTON,
]:
ei.send(
setup.InterfaceVersion(interface, VERSION_V(1))