summaryrefslogtreecommitdiff
path: root/testsuite/mdev.tests
diff options
context:
space:
mode:
authorDenis Vlasenko2009-04-16 22:42:01 +0000
committerDenis Vlasenko2009-04-16 22:42:01 +0000
commit3161b6119969dcd0a01e26ea94ec203deda2d519 (patch)
tree8f5e2b2a22ea730642a08f35bd35eb07c0baf90c /testsuite/mdev.tests
parent6dda5dec238e35d7e760091aee061e5fc51e0e30 (diff)
downloadbusybox-3161b6119969dcd0a01e26ea94ec203deda2d519.zip
busybox-3161b6119969dcd0a01e26ea94ec203deda2d519.tar.gz
mdev: set mode, needed when device node already exists.
Diffstat (limited to 'testsuite/mdev.tests')
-rwxr-xr-xtestsuite/mdev.tests12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/mdev.tests b/testsuite/mdev.tests
index 90379e6..388c41d 100755
--- a/testsuite/mdev.tests
+++ b/testsuite/mdev.tests
@@ -49,6 +49,18 @@ brw-rw-rw- 1 1 1 8,0 sda
# continuing to use directory structure from prev test
rm -rf mdev.testdir/dev/*
+echo "-.* 1:1 666" >mdev.testdir/etc/mdev.conf
+echo "sda 2:2 444" >>mdev.testdir/etc/mdev.conf
+testing "mdev does not stop on dash-rule" \
+ "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
+ ls -ln mdev.testdir/dev | $FILTER_LS" \
+"\
+br--r--r-- 1 2 2 8,0 sda
+" \
+ "" ""
+
+# continuing to use directory structure from prev test
+rm -rf mdev.testdir/dev/*
echo "sda 0:0 444 >disk/scsiA" >mdev.testdir/etc/mdev.conf
testing "mdev move/symlink rule '>bar/baz'" \
"env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;