turns printfs back on
[freebsd-src/fkvm-freebsd.git] / tools / regression / fstest / tests / chflags / 06.t
blobcebfcdd52bf47c8768aaf2ca8646bcdd88e40967
1 #!/bin/sh
2 # $FreeBSD$
4 desc="chflags returns ELOOP if too many symbolic links were encountered in translating the pathname"
6 dir=`dirname $0`
7 . ${dir}/../misc.sh
9 require chflags
11 echo "1..6"
13 n0=`namegen`
14 n1=`namegen`
16 expect 0 symlink ${n0} ${n1}
17 expect 0 symlink ${n1} ${n0}
18 expect ELOOP chflags ${n0}/test UF_IMMUTABLE
19 expect ELOOP chflags ${n1}/test UF_IMMUTABLE
20 expect 0 unlink ${n0}
21 expect 0 unlink ${n1}