From 91a75e4ad4071d9d0ce1adb5c8d8272aac379d0a Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sat, 25 Oct 2008 03:00:03 +0200 Subject: match KEY="A|B" without temporary string copy --- test/udev-test.pl | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'test') diff --git a/test/udev-test.pl b/test/udev-test.pl index 9725aff5ba..f630b74a9d 100755 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -1448,6 +1448,31 @@ EOF KERNEL=="dontknow*|*nothing", NAME="nomatch" KERNEL=="ttyACM*", NAME="before" KERNEL=="dontknow*|ttyACM*|nothing*", NAME="right" +EOF + }, + { + desc => "test multi matches 3", + subsys => "tty", + devpath => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0", + exp_name => "right", + rules => < "test multi matches 4", + subsys => "tty", + devpath => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0", + exp_name => "right", + rules => <