From f2860bf6d332cbbfd2d4d9afadb0148cf061fad2 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 16 Aug 2010 14:26:15 +0200 Subject: mdev: fix non-working device deletion, add a test for that Signed-off-by: Denys Vlasenko --- testsuite/mdev.tests | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'testsuite/mdev.tests') diff --git a/testsuite/mdev.tests b/testsuite/mdev.tests index c375fc774..a46929b3a 100755 --- a/testsuite/mdev.tests +++ b/testsuite/mdev.tests @@ -37,6 +37,16 @@ brw-rw---- 1 0 0 8,0 sda "" "" SKIP= +# continuing to use directory structure from prev test +optional STATIC FEATURE_MDEV_CONF FEATURE_LS_TIMESTAMPS FEATURE_LS_USERNAME +testing "mdev deletes /block/sda" \ + "env - PATH=$PATH ACTION=remove DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; + ls -ln mdev.testdir/dev | $FILTER_LS" \ +"\ +" \ + "" "" +SKIP= + # continuing to use directory structure from prev test rm -rf mdev.testdir/dev/* echo ".* 1:1 666" >mdev.testdir/etc/mdev.conf -- cgit v1.2.3