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

add recursive symlink test_17e

lustre/tests/sanity.sh

index 8fb12c0..ff0a217 100644 (file)
@@ -450,6 +450,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_17f() {
        mkdir -p $DIR/d17f
        ln -s 1234567890/2234567890/3234567890/4234567890 $DIR/d17f/111