]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/regression/pjdfstest/tests/link/08.t
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / regression / pjdfstest / tests / link / 08.t
1 #!/bin/sh
2 # $FreeBSD$
3
4 desc="link returns ELOOP if too many symbolic links were encountered in translating one of the pathnames"
5
6 dir=`dirname $0`
7 . ${dir}/../misc.sh
8
9 echo "1..10"
10
11 n0=`namegen`
12 n1=`namegen`
13 n2=`namegen`
14
15 expect 0 symlink ${n0} ${n1}
16 expect 0 symlink ${n1} ${n0}
17 expect ELOOP link ${n0}/test ${n2}
18 expect ELOOP link ${n1}/test ${n2}
19 expect 0 create ${n2} 0644
20 expect ELOOP link ${n2} ${n0}/test
21 expect ELOOP link ${n2} ${n1}/test
22 expect 0 unlink ${n0}
23 expect 0 unlink ${n1}
24 expect 0 unlink ${n2}