From: grev Date: Sat, 13 Oct 2007 00:30:41 +0000 (+0000) Subject: b=13028 X-Git-Tag: v1_7_0_51~628 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=fb3bb7d76802ed8ae50c80df1d1d9011e4ee23f5;p=fs%2Flustre-release.git b=13028 i=Adilger add recursive symlink test_17e --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 8fb12c0..ff0a217 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -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