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 <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2018-08-27 17:00:04 +10:00
parent 974425f8b7
commit 35b100a2ef

View file

@ -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 */