mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-24 15:50:07 +01:00
test: increase the udev init timeout
Hitting this limit too often on congested VMs, so let's increase the sleep sleep (so the system can get done what needs to be done) and get the whole timeout from 600ms to 2000ms. Note: if we really hit 2000ms we may still fail on some tests with the check's default 3 second timeout. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
44a1f07a57
commit
c0ef2a172a
1 changed files with 2 additions and 2 deletions
|
|
@ -1088,10 +1088,10 @@ litest_wait_for_udev(int fd)
|
|||
litest_assert_ptr_notnull(device);
|
||||
while (device && !udev_device_get_property_value(device, "ID_INPUT")) {
|
||||
loop_count++;
|
||||
litest_assert_int_lt(loop_count, 300);
|
||||
litest_assert_int_lt(loop_count, 200);
|
||||
|
||||
udev_device_unref(device);
|
||||
msleep(2);
|
||||
msleep(10);
|
||||
device = udev_device_new_from_devnum(udev, 'c', st.st_rdev);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue