summaryrefslogtreecommitdiff
path: root/test/udev-test.pl
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-07-07 23:43:13 +0200
committerKay Sievers <kay.sievers@suse.de>2005-07-07 23:43:13 +0200
commit7b2bdb4b1bd9e273ea67e4538be3f7d3545331fa (patch)
tree25cd70b93e92a443bc14ed90d41c2b74065a89af /test/udev-test.pl
parent97c0448d9a5626a28a60cc3306e9360f45409fd9 (diff)
fix symlink values separated by multiple spaces
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'test/udev-test.pl')
-rwxr-xr-xtest/udev-test.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 6fbc23e557..873780d70a 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -802,6 +802,17 @@ KERNEL=="ttyUSB[0-9]*", NAME="ttyUSB%n", SYMLINK="symlink1-%n symlink2-%k symlin
EOF
},
{
+ desc => "multiple symlinks with a lot of s p a c e s",
+ subsys => "tty",
+ devpath => "/class/tty/ttyUSB0",
+ exp_name => "one",
+ not_exp_name => " ",
+ exp_target => "ttyUSB0",
+ rules => <<EOF
+KERNEL=="ttyUSB[0-9]*", NAME="ttyUSB%n", SYMLINK=" one two "
+EOF
+ },
+ {
desc => "symlink creation (same directory)",
subsys => "tty",
devpath => "/class/tty/ttyUSB0",