From 37d232250cfe8b592339c5cacf26cd01923cb296 Mon Sep 17 00:00:00 2001 From: devesh Date: Fri, 5 Aug 2005 21:03:00 +0000 Subject: [PATCH] Added 26f for testing removal of directory which contains recursive symlink. --- lustre/tests/sanity.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index dc37779..7ab0317 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -802,6 +802,25 @@ test_26e() { } run_test 26e "unlink multiple component recursive symlink ======" +# recursive symlinks (bug 7022) +test_26f() { + mkdir $DIR/foo + cd $DIR/foo + mkdir -p bar/bar1 + mkdir foo + cd foo + ln -s .. dotdot + ln -s dotdot/bar bar + cd ../.. + output=`ls foo/foo/bar/bar1` + if test "$output" = bar1; then + error "unexpected output" + fi + rm -r foo + $CHECKSTAT -a $DIR/foo || error +} +run_test 26f "rm -r of a directory which has recursive symlink ======" + test_27a() { echo '== stripe sanity ==============================================' mkdir $DIR/d27 -- 1.8.3.1