Whamcloud - gitweb
b=13028
authorgrev <grev>
Sat, 13 Oct 2007 00:33:36 +0000 (00:33 +0000)
committergrev <grev>
Sat, 13 Oct 2007 00:33:36 +0000 (00:33 +0000)
i=Adilger

add recursive symlink test_17e

lustre/tests/sanity.sh

index f36119c..1d6e2f7 100644 (file)
@@ -437,6 +437,15 @@ test_17d() {
 }
 run_test 17d "symlinks: create dangling ========================"
 
+test_17e() {
+       mkdir -p $DIR/$tdir
+       local foo=$DIR/$tdir/$tfile
+       ln -s $foo $foo || error "create symlink failed"
+       ls -l $foo || error "ls -l failed"
+       ls $foo && error "ls not failed" || true
+}
+run_test 17e "symlinks: create recursive symlink (should return error) ===="
+
 test_18() {
        touch $DIR/f
        ls $DIR || error