chiark / gitweb /
[PATCH] add SUBSYSTEM rule to catch all block devices and apply the disk permissions
[elogind.git] / test / udev-test.pl
index 9a581ce5276ff01d413c928fd369f5c01ee1bf54..bc8c4560d35558fbbb0ed28833c39421406f1bf5 100644 (file)
@@ -187,6 +187,36 @@ EOF
 
 KERNEL="ttyUSB0", NAME="visor"
 
+EOF
+       },
+       {
+               desc            => "Handle backslashed multi lines in config file (and replace kernel name)",
+               subsys          => "tty",
+               devpath         => "/class/tty/ttyUSB0",
+               exp_name        => "visor" ,
+               conf            => <<EOF
+KERNEL="ttyUSB0", \\
+NAME="visor"
+
+EOF
+       },
+       {
+               desc            => "Handle stupid backslashed multi lines in config file (and replace kernel name)",
+               subsys          => "tty",
+               devpath         => "/class/tty/ttyUSB0",
+               exp_name        => "visor" ,
+               conf            => <<EOF
+
+#
+\\
+
+\\\\
+
+#\\
+
+KERNEL="ttyUSB0", \\
+       NAME="visor"
+
 EOF
        },
        {