07.t revision 166065
1166065Spjd#!/bin/sh 2166065Spjd# $FreeBSD: head/tools/regression/fstest/tests/truncate/07.t 166065 2007-01-17 01:42:12Z pjd $ 3166065Spjd 4166065Spjddesc="truncate returns ELOOP if too many symbolic links were encountered in translating the pathname" 5166065Spjd 6166065Spjddir=`dirname $0` 7166065Spjd. ${dir}/../misc.sh 8166065Spjd 9166065Spjdecho "1..6" 10166065Spjd 11166065Spjdn0=`namegen` 12166065Spjdn1=`namegen` 13166065Spjd 14166065Spjdexpect 0 symlink ${n0} ${n1} 15166065Spjdexpect 0 symlink ${n1} ${n0} 16166065Spjdexpect ELOOP truncate ${n0}/test 123 17166065Spjdexpect ELOOP truncate ${n1}/test 123 18166065Spjdexpect 0 unlink ${n0} 19166065Spjdexpect 0 unlink ${n1} 20