chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] namedev: skip backslashes only if followed by newline
[elogind.git]
/
test
/
udev-test.pl
diff --git
a/test/udev-test.pl
b/test/udev-test.pl
index fe7b932669e824d7eb29b0bf05fdd9c8da125922..f442b162ec31cf5ff314480b269284ec5ff30e13 100644
(file)
--- a/
test/udev-test.pl
+++ b/
test/udev-test.pl
@@
-192,6
+192,15
@@
EOF
KERNEL="ttyUSB0", \\
NAME="visor"
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
},
{
EOF
},
{