chiark / gitweb /
[PATCH] namedev: skip backslashes only if followed by newline
[elogind.git] / test / udev-test.pl
index fe7b932669e824d7eb29b0bf05fdd9c8da125922..f442b162ec31cf5ff314480b269284ec5ff30e13 100644 (file)
@@ -192,6 +192,15 @@ EOF
 KERNEL="ttyUSB0", \\
 NAME="visor"
 
+EOF
+       },
+       {
+               desc            => "preserve backslashes, if they are not for a newline",
+               subsys          => "tty",
+               devpath         => "/class/tty/ttyUSB0",
+               exp_name        => "aaa",
+               conf            => <<EOF
+KERNEL="ttyUSB0", PROGRAM="/bin/echo -e \\101", RESULT="A", NAME="aaa"
 EOF
        },
        {