From fd1cb049daf924de127de6039cb30e2b2a9d364a Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 15 Mar 2018 18:17:15 +1000 Subject: [PATCH] test: disable the second-finger-move test for semi-mt devices Having only one finger move (and the second finger at that) in semi-mt device is not something we can realistically support. We disable the mt axes and treat semi-mts as single-touch devices, so we don't actually get those events. The only reason this test passed is because we release the first touch first here, causing a ABS_X/Y shift that exceeded the motion threshold. Signed-off-by: Peter Hutterer --- test/test-touchpad-tap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-touchpad-tap.c b/test/test-touchpad-tap.c index 16326e72..2e1c556d 100644 --- a/test/test-touchpad-tap.c +++ b/test/test-touchpad-tap.c @@ -3417,7 +3417,7 @@ litest_setup_tests_touchpad_tap(void) litest_add("tap-2fg:2fg", touchpad_2fg_tap_click_apple, LITEST_APPLE_CLICKPAD, LITEST_ANY); litest_add("tap-2fg:2fg", touchpad_no_2fg_tap_after_move, LITEST_TOUCHPAD, LITEST_SINGLE_TOUCH|LITEST_SEMI_MT); litest_add("tap-2fg:2fg", touchpad_no_2fg_tap_after_timeout, LITEST_TOUCHPAD, LITEST_SINGLE_TOUCH|LITEST_SEMI_MT); - litest_add("tap-2fg:2fg", touchpad_no_first_fg_tap_after_move, LITEST_TOUCHPAD, LITEST_SINGLE_TOUCH); + litest_add("tap-2fg:2fg", touchpad_no_first_fg_tap_after_move, LITEST_TOUCHPAD, LITEST_SINGLE_TOUCH|LITEST_SEMI_MT); litest_add_ranged("tap-3fg:3fg", touchpad_3fg_tap_btntool, LITEST_TOUCHPAD, LITEST_SINGLE_TOUCH, &tap_map_range); litest_add_ranged("tap-3fg:3fg", touchpad_3fg_tap_btntool_inverted, LITEST_TOUCHPAD, LITEST_SINGLE_TOUCH, &tap_map_range); litest_add_ranged("tap-3fg:3fg", touchpad_3fg_tap, LITEST_TOUCHPAD, LITEST_SINGLE_TOUCH, &tap_map_range);