X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=test%2Fudev-test.pl;h=243e9619db4a155796526d72010e3e48a000a18b;hb=cb25a9585d87d8dd13d9eae66fd232e3dfdc8fac;hp=df5e3fcb2a7d0329611d5140ffb467d816b4ed9e;hpb=5c0f595d91a21b1fba2b9edd89511a072036d0e8;p=elogind.git diff --git a/test/udev-test.pl b/test/udev-test.pl index df5e3fcb2..243e9619d 100755 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -92,7 +92,7 @@ SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA", ATTRS{model}=="ST910021AS", NAME="boot EOF }, { - desc => "label test of max sysfs files", + desc => "label test of max sysfs files (skip invalid rule)", subsys => "block", devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1", exp_name => "boot_disk1" , @@ -230,7 +230,7 @@ EOF # \\ -\\\\ +\\ #\\ @@ -1195,6 +1195,7 @@ EOF devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1", exp_name => "true", rules => < "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1", exp_name => "true", rules => < "block", devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda", exp_name => "ok", - exp_perms => "root:nobody:0640", + exp_perms => "root:tty:0640", rules => < "final assignment", + desc => "final assignment 2", subsys => "block", devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda", exp_name => "ok", - exp_perms => "root:nobody:0640", + exp_perms => "root:tty:0640", rules => < "yes", rules => < "there", rules => < "TEST invalid NAME= only (skip invalid rule)", + subsys => "block", + devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda", + exp_name => "yes", + rules => < 0) { - system("$udev_bin_valgrind $subsys"); + system("$udev_bin_valgrind"); } else { - system("$udev_bin $subsys"); + system("$udev_bin"); } }