Wait after deleting a device so udev can catch up with everything and the
various hooks to make sure it's happy with any newly created devices after
this.
The sleep is in the delete path to also cover the tests where we manually
create uinput devices rather than using the litest hooks.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
free(d->private);
memset(d,0, sizeof(*d));
free(d);
+
+ /* zzz so udev can catch up with things, so we don't accidentally open
+ * an old device in the next test and then get all upset when things blow
+ * up */
+ msleep(10);
}
void