From c5f5a0fa7bc8793e1092d90fab1426bc3a3cd26f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 11 Nov 2019 14:20:57 +1000 Subject: [PATCH] test: fix a pressure test to movement during tap The motion event here was intended to offset the light pressure from the extended touch down. This also causes motion past the tap threshold and won't work with a future patch. Make the touch "real" by simply plaing a normal movement in the current position - the kernel will filter and we'll just update the pressure. Signed-off-by: Peter Hutterer --- test/test-touchpad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-touchpad.c b/test/test-touchpad.c index 73dd9f0d..b2c626ce 100644 --- a/test/test-touchpad.c +++ b/test/test-touchpad.c @@ -6057,7 +6057,7 @@ START_TEST(touchpad_pressure_btntool) libinput_dispatch(li); /* make one finger real */ - litest_touch_move_to(dev, 0, 40, 50, 41, 52, 10); + litest_touch_move(dev, 0, 40, 50); litest_drain_events(li); /* tripletap should now be 3 fingers tap */