From a402404fb23195839a9e008dbbe5edb5349c05b0 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 5 Feb 2009 12:40:15 +0100 Subject: [PATCH] test: add test for empty and non-existent ATTR --- .../0:0:0:0/block/sda/test_empty_file | 0 test/udev-test.pl | 27 +++++++++++++++++++ udev/udevadm-settle.c | 2 ++ 3 files changed, 29 insertions(+) create mode 100644 test/sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/test_empty_file diff --git a/test/sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/test_empty_file b/test/sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/test_empty_file new file mode 100644 index 000000000..e69de29bb diff --git a/test/udev-test.pl b/test/udev-test.pl index 1b81eb8d7..4f61ce3e5 100755 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -480,6 +480,33 @@ EOF rules => < "ATTR (empty file)", + subsys => "tty", + devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda", + exp_name => "empty" , + rules => < "ATTR (non-existent file)", + subsys => "tty", + devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda", + exp_name => "non-existent" , + rules => <