]> git.ipfire.org Git - thirdparty/systemd.git/commit
test/udev-test.pl: allow concurrent additions and removals
authorMartin Wilck <mwilck@suse.com>
Mon, 23 Apr 2018 19:59:05 +0000 (21:59 +0200)
committerMichal Sekletár <msekleta@redhat.com>
Mon, 2 Nov 2020 10:43:14 +0000 (11:43 +0100)
commit09a4062d70b3a10d022e40066e2adf09df05bbbc
treee9655cfe1785aed952bc0cfcadc9f5f226a4a6e5
parentaf7ee3eae689f9c31b49ea13758ad9c901918ce3
test/udev-test.pl: allow concurrent additions and removals

Allow testing cases where multiple devices are added and removed
simultaneously. Tests are started as synchronously as possible using a
semaphore, in order to test possible race conditions. If this isn't desired,
the test parameter "sleep_us" can be set to the number of microseconds to wait
between udev invocations.
test/udev-test.pl