01.t revision 271294
1271294Sngie#!/bin/sh 2271294Sngie# $FreeBSD: head/tools/regression/pjdfstest/tests/rename/01.t 211352 2010-08-15 21:24:17Z pjd $ 3271294Sngie 4271294Sngiedesc="rename returns ENAMETOOLONG if a component of either pathname exceeded {NAME_MAX} characters" 5271294Sngie 6271294Sngiedir=`dirname $0` 7271294Sngie. ${dir}/../misc.sh 8271294Sngie 9271294Sngieecho "1..8" 10271294Sngie 11271294Sngien0=`namegen` 12271294Sngienx=`namegen_max` 13271294Sngienxx="${nx}x" 14271294Sngie 15271294Sngieexpect 0 create ${nx} 0644 16271294Sngieexpect 0 rename ${nx} ${n0} 17271294Sngieexpect 0 rename ${n0} ${nx} 18271294Sngieexpect 0 unlink ${nx} 19271294Sngie 20271294Sngieexpect 0 create ${n0} 0644 21271294Sngieexpect ENAMETOOLONG rename ${n0} ${nxx} 22271294Sngieexpect 0 unlink ${n0} 23271294Sngieexpect ENAMETOOLONG rename ${nxx} ${n0} 24