OSDN Git Service

initial commit
[openbsd-octeon/openbsd-octeon.git] / src / regress / sys / ffs / tests / open / 12.t
1 #!/bin/sh
2 # $FreeBSD: src/tools/regression/fstest/tests/open/12.t,v 1.1 2007/01/17 01:42:10 pjd Exp $
3
4 desc="open returns ELOOP if too many symbolic links were encountered in translating the pathname"
5
6 n0=`namegen`
7 n1=`namegen`
8
9 expect 0 symlink ${n0} ${n1}
10 expect 0 symlink ${n1} ${n0}
11 expect ELOOP open ${n0}/test O_RDONLY
12 expect ELOOP open ${n1}/test O_RDONLY
13 expect 0 unlink ${n0}
14 expect 0 unlink ${n1}