turns printfs back on
[freebsd-src/fkvm-freebsd.git] / tools / regression / fstest / tests / truncate / 03.t
blob6a4cd64fb2a91ccbbee7213507a02a13f8be1f56
1 #!/bin/sh
2 # $FreeBSD$
4 desc="truncate returns ENAMETOOLONG if an entire path name exceeded 1023 characters"
6 dir=`dirname $0`
7 . ${dir}/../misc.sh
9 echo "1..12"
11 expect 0 mkdir ${name255} 0755
12 expect 0 mkdir ${name255}/${name255} 0755
13 expect 0 mkdir ${name255}/${name255}/${name255} 0755
14 expect 0 mkdir ${path1021} 0755
15 expect 0 create ${path1023} 0644
16 expect 0 truncate ${path1023} 123
17 expect 0 unlink ${path1023}
18 expect ENAMETOOLONG truncate ${path1024} 123
19 expect 0 rmdir ${path1021}
20 expect 0 rmdir ${name255}/${name255}/${name255}
21 expect 0 rmdir ${name255}/${name255}
22 expect 0 rmdir ${name255}