From e156d44eb2e9954d37ed0dfa326f263c3ed4c3d7 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 4 May 2008 19:44:39 -0500 Subject: More tweaks to rmdir.test and the testing infrastructure. --- scripts/test/rmdir.test | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'scripts/test') diff --git a/scripts/test/rmdir.test b/scripts/test/rmdir.test index 9ca7d59e..bea75881 100755 --- a/scripts/test/rmdir.test +++ b/scripts/test/rmdir.test @@ -5,7 +5,7 @@ #testing "name" "command" "result" "infile" "stdin" mkdir one -testing "rmdir" "rmdir one && [ ! -d walrus ] && echo yes" "yes\n" "" "" +testing "rmdir" "rmdir one && [ ! -d one ] && echo yes" "yes\n" "" "" touch walrus testing "rmdir file" \ @@ -20,6 +20,7 @@ mkdir one two three testing "rmdir one missing two file three" \ "rmdir one missing two walrus three 2> /dev/null || [ ! -d three ] && echo yes" \ "yes\n" "" "" +rm walrus mkdir one chmod 000 one @@ -39,7 +40,12 @@ testing "rmdir -p part of path" \ "yes\n" "" "" rm -rf temp + mkdir -p one/two/three testing "rmdir -p one/two/three" \ "rmdir -p one/two/three && [ ! -e one ] && echo yes" "yes\n" "" "" -rm walrus + +#mkdir -p one/two/three +#chmod 000 one/two/three one/two one +#testing "rmdir -p one/two/three" \ +# "rmdir -p one/two/three && [ ! -e one ] && echo yes" "yes\n" "" "" -- cgit v1.2.3