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
4desc="open returns ELOOP if too many symbolic links were encountered in translating the pathname"
5
6n0=`namegen`
7n1=`namegen`
8
9expect 0 symlink ${n0} ${n1}
10expect 0 symlink ${n1} ${n0}
11expect ELOOP open ${n0}/test O_RDONLY
12expect ELOOP open ${n1}/test O_RDONLY
13expect 0 unlink ${n0}
14expect 0 unlink ${n1}
15