turns printfs back on
[freebsd-src/fkvm-freebsd.git] / tools / regression / fstest / tests / rename / 03.t
blob8404dbe27d0fd4beee15bdf72d4b39356f3f6071
1 #!/bin/sh
2 # $FreeBSD$
4 desc="rename returns ENOENT if a component of the 'from' path does not exist, or a path prefix of 'to' does not exist"
6 dir=`dirname $0`
7 . ${dir}/../misc.sh
9 echo "1..6"
11 n0=`namegen`
12 n1=`namegen`
13 n2=`namegen`
15 expect 0 mkdir ${n0} 0755
16 expect ENOENT rename ${n0}/${n1}/test ${n2}
17 expect 0 create ${n2} 0644
18 expect ENOENT rename ${n2} ${n0}/${n1}/test
19 expect 0 unlink ${n2}
20 expect 0 rmdir ${n0}