mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-06 08:20:11 +01:00
test: use motion events to check the "system is too slow" message
Using buttons for this test can trigger debounce warnings instead (in addition?) to the warning we actually check for. Let's use motion events instead and double the loop while we're at it so we have double the chance of triggering at least one warning. Fixes #574 for unknown reasons Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
aed15dd791
commit
d838e3a3a4
1 changed files with 3 additions and 4 deletions
|
|
@ -715,10 +715,9 @@ START_TEST(timer_delay_bug_warning)
|
|||
user_data->private = &warning_triggered;
|
||||
libinput_log_set_handler(li, timer_delay_warning);
|
||||
|
||||
for (int i = 0; i < 10; i++) {
|
||||
litest_button_click(dev, BTN_LEFT, true);
|
||||
libinput_dispatch(li);
|
||||
litest_button_click(dev, BTN_LEFT, false);
|
||||
for (int i = 0; i < 20; i++) {
|
||||
litest_event(dev, EV_REL, REL_X, -1);
|
||||
litest_event(dev, EV_SYN, SYN_REPORT, 0);
|
||||
msleep(11);
|
||||
libinput_dispatch(li);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue