03.t revision 166065
1166065Spjd#!/bin/sh 2166065Spjd# $FreeBSD: head/tools/regression/fstest/tests/symlink/03.t 166065 2007-01-17 01:42:12Z pjd $ 3166065Spjd 4166065Spjddesc="symlink returns ENAMETOOLONG if an entire length of either path name exceeded 1023 characters" 5166065Spjd 6166065Spjddir=`dirname $0` 7166065Spjd. ${dir}/../misc.sh 8166065Spjd 9166065Spjdecho "1..14" 10166065Spjd 11166065Spjdn0=`namegen` 12166065Spjd 13166065Spjdexpect 0 symlink ${path1023} ${n0} 14166065Spjdexpect 0 unlink ${n0} 15166065Spjdexpect 0 mkdir ${name255} 0755 16166065Spjdexpect 0 mkdir ${name255}/${name255} 0755 17166065Spjdexpect 0 mkdir ${name255}/${name255}/${name255} 0755 18166065Spjdexpect 0 mkdir ${path1021} 0755 19166065Spjdexpect 0 symlink ${n0} ${path1023} 20166065Spjdexpect 0 unlink ${path1023} 21166065Spjdexpect ENAMETOOLONG symlink ${n0} ${path1024} 22166065Spjdexpect ENAMETOOLONG symlink ${path1024} ${n0} 23166065Spjdexpect 0 rmdir ${path1021} 24166065Spjdexpect 0 rmdir ${name255}/${name255}/${name255} 25166065Spjdexpect 0 rmdir ${name255}/${name255} 26166065Spjdexpect 0 rmdir ${name255} 27