tests/udev-test.pl: add multiple device test
authorMartin Wilck <mwilck@suse.com>
Tue, 24 Apr 2018 20:04:55 +0000 (22:04 +0200)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Mon, 25 Jan 2021 14:05:18 +0000 (15:05 +0100)
commit8ab9d11b925e7f39b350ce69a1e28752de411b35
tree98bc4b791890dd95c05e08c9560a28b034f31d71
parent7913cdbdfe6ca3fa0a1221c60702806eb51aa707
tests/udev-test.pl: add multiple device test

Add 4 new tests using multiple devices. Number 2-4 use many
devices claiming the same symlink, where only one device has
a higher priority thatn the others. They fail sporadically with
the current code, if a race condition causes the symlink to point
to the wrong device. Test 4 is like test 2 with sleeps in between,
it's much less likely to fail.

(cherry picked from commit 4a0ec82daf32446519e1d86329bb802325b82104)

Related: #1642728
test/udev-test.pl