From 35b100a2effb93ddbdfb80bee0abaa2bf5350928 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 27 Aug 2018 17:00:04 +1000 Subject: [PATCH] test: make the touchpad jump test more robust for timing errors move_to() now uses delays, let's make this test more robust for timing errors so we don't fall below the threshold movement we want to trigger. Signed-off-by: Peter Hutterer --- test/test-touchpad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-touchpad.c b/test/test-touchpad.c index 9a4774e6..25501fb3 100644 --- a/test/test-touchpad.c +++ b/test/test-touchpad.c @@ -5580,11 +5580,11 @@ START_TEST(touchpad_jump_delta) * jump to test the delta jumps. These numbers may not work on any * other device */ litest_disable_log_handler(li); - litest_touch_move_to(dev, 0, 90, 30, 90, 80, 1, 0); + litest_touch_move(dev, 0, 90, 88); litest_assert_empty_queue(li); litest_restore_log_handler(li); - litest_touch_move_to(dev, 0, 90, 80, 91, 81, 10, 0); + litest_touch_move_to(dev, 0, 90, 88, 91, 89, 10, 0); litest_touch_up(dev, 0); /* expect lots of little events, no big jump */