turns printfs back on
[freebsd-src/fkvm-freebsd.git] / tools / regression / fstest / tests / rename / 01.t
blob7749b90046c28275b2c432ef39c578065a735f5a
1 #!/bin/sh
2 # $FreeBSD$
4 desc="rename returns ENAMETOOLONG if a component of either pathname exceeded 255 characters"
6 dir=`dirname $0`
7 . ${dir}/../misc.sh
9 echo "1..8"
11 n0=`namegen`
13 expect 0 create ${name255} 0644
14 expect 0 rename ${name255} ${n0}
15 expect 0 rename ${n0} ${name255}
16 expect 0 unlink ${name255}
18 expect 0 create ${n0} 0644
19 expect ENAMETOOLONG rename ${n0} ${name256}
20 expect 0 unlink ${n0}
21 expect ENAMETOOLONG rename ${name256} ${n0}