xref: /openbsd/regress/sys/ffs/tests/symlink/07.t (revision d415bd75)
1#!/bin/sh
2# $FreeBSD: src/tools/regression/fstest/tests/symlink/07.t,v 1.1 2007/01/17 01:42:11 pjd Exp $
3
4desc="symlink returns ELOOP if too many symbolic links were encountered in translating the name2 path name"
5
6n0=`namegen`
7n1=`namegen`
8
9expect 0 symlink ${n0} ${n1}
10expect 0 symlink ${n1} ${n0}
11expect ELOOP symlink test ${n0}/test
12expect ELOOP symlink test ${n1}/test
13expect 0 unlink ${n0}
14expect 0 unlink ${n1}
15