mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 01:10:25 +01:00
test: don't use the same mouse twice
No effect since we don't care about the mouse itself. But when running on kernels without uinput's UI_GET_SYSNAME this can cause misdetection of the uinput device and test case failures. Simply picking a differently named device avoids that. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
c05e92643c
commit
c2b33f2a53
1 changed files with 2 additions and 2 deletions
|
|
@ -4647,7 +4647,7 @@ START_TEST(touchpad_disabled_double_mouse)
|
|||
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
|
||||
|
||||
mouse1 = litest_add_device(li, LITEST_MOUSE);
|
||||
mouse2 = litest_add_device(li, LITEST_MOUSE);
|
||||
mouse2 = litest_add_device(li, LITEST_MOUSE_LOW_DPI);
|
||||
litest_assert_only_typed_events(li, LIBINPUT_EVENT_DEVICE_ADDED);
|
||||
|
||||
litest_touch_down(dev, 0, 20, 30);
|
||||
|
|
@ -4693,7 +4693,7 @@ START_TEST(touchpad_disabled_double_mouse_one_suspended)
|
|||
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
|
||||
|
||||
mouse1 = litest_add_device(li, LITEST_MOUSE);
|
||||
mouse2 = litest_add_device(li, LITEST_MOUSE);
|
||||
mouse2 = litest_add_device(li, LITEST_MOUSE_LOW_DPI);
|
||||
litest_assert_only_typed_events(li, LIBINPUT_EVENT_DEVICE_ADDED);
|
||||
|
||||
/* Disable one external mouse -> don't expect touchpad events */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue