03.t revision 211178
1166065Spjd#!/bin/sh 2166065Spjd# $FreeBSD: head/tools/regression/fstest/tests/symlink/03.t 211178 2010-08-11 16:33:17Z pjd $ 3166065Spjd 4211178Spjddesc="symlink returns ENAMETOOLONG if an entire length of either path name exceeded {PATH_MAX} characters" 5166065Spjd 6166065Spjddir=`dirname $0` 7166065Spjd. ${dir}/../misc.sh 8166065Spjd 9211178Spjdecho "1..6" 10166065Spjd 11166065Spjdn0=`namegen` 12211178Spjdnx=`dirgen_max` 13211178Spjdnxx="${nx}x" 14166065Spjd 15211178Spjdmkdir -p "${nx%/*}" 16211178Spjdexpect 0 symlink ${nx} ${n0} 17166065Spjdexpect 0 unlink ${n0} 18211178Spjdexpect 0 symlink ${n0} ${nx} 19211178Spjdexpect 0 unlink ${nx} 20211178Spjdexpect ENAMETOOLONG symlink ${n0} ${nxx} 21211178Spjdexpect ENAMETOOLONG symlink ${nxx} ${n0} 22211178Spjdrm -rf "${nx%%/*}" 23