turns printfs back on
[freebsd-src/fkvm-freebsd.git] / tools / regression / fstest / tests / chmod / 03.t
blob7b424d03872a59802bb1cca9f0473229cfb499d0
1 #!/bin/sh
2 # $FreeBSD$
4 desc="chmod 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 chmod ${path1023} 0642
17 expect 0 unlink ${path1023}
18 expect ENAMETOOLONG chmod ${path1024} 0642
19 expect 0 rmdir ${path1021}
20 expect 0 rmdir ${name255}/${name255}/${name255}
21 expect 0 rmdir ${name255}/${name255}
22 expect 0 rmdir ${name255}