X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=test%2Fudev-test.pl;h=c7e1a9d47e7f4d3898f9a070e1e4b7d2853888a1;hp=fe7b932669e824d7eb29b0bf05fdd9c8da125922;hb=882af735ec18cb4e6ba6f59ca60f8266cc96c330;hpb=1cec1c241600fc11121f9504bc9e95836c03bd9c diff --git a/test/udev-test.pl b/test/udev-test.pl index fe7b93266..c7e1a9d47 100644 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -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 => < "/block/sda/sda3", exp_name => "first_disk3" , conf => < "/block/sda/sda3", exp_name => "Major:8:minor:3:kernelnumber:3:bus:0:0:0:0" , conf => < "/block/sda/sda3", exp_name => "M8-m3-n3-b0:0-sIBM" , conf => < "yes", conf => < "symlink to empty name", - subsys => "block", - devpath => "/block/sda", - exp_name => "symlink", - exp_target => "", - exp_add_error => "yes", - conf => < "symlink and name empty", - subsys => "block", - devpath => "/block/sda", - exp_name => "", - exp_target => "", - exp_add_error => "yes", - exp_rem_error => "yes", - conf => <