turns printfs back on
[freebsd-src/fkvm-freebsd.git] / tools / regression / fstest / tests / rename / 12.t
blob504980ca512ce82d3f28dd6a6f4fab1a0424268a
1 #!/bin/sh
2 # $FreeBSD$
4 desc="rename returns ENOTDIR if a component of either path prefix is not a directory"
6 dir=`dirname $0`
7 . ${dir}/../misc.sh
9 echo "1..8"
11 n0=`namegen`
12 n1=`namegen`
13 n2=`namegen`
15 expect 0 mkdir ${n0} 0755
16 expect 0 create ${n0}/${n1} 0644
17 expect ENOTDIR rename ${n0}/${n1}/test ${n0}/${n2}
18 expect 0 create ${n0}/${n2} 0644
19 expect ENOTDIR link ${n0}/${n2} ${n0}/${n1}/test
20 expect 0 unlink ${n0}/${n1}
21 expect 0 unlink ${n0}/${n2}
22 expect 0 rmdir ${n0}