turns printfs back on
[freebsd-src/fkvm-freebsd.git] / tools / regression / fstest / tests / rename / 19.t
blobb068a0102f5e287ac763d603f1af7d824e3c934f
1 #!/bin/sh
2 # $FreeBSD$
4 desc="rename returns EINVAL when an attempt is made to rename '.' or '..'"
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 0 mkdir ${n0}/${n1} 0755
18 expect EINVAL rename ${n0}/${n1}/. ${n2}
19 expect EINVAL rename ${n0}/${n1}/.. ${n2}
21 expect 0 rmdir ${n0}/${n1}
22 expect 0 rmdir ${n0}