01.t revision 271294
1271294Sngie#!/bin/sh 2271294Sngie# $FreeBSD: head/tools/regression/pjdfstest/tests/rmdir/01.t 211352 2010-08-15 21:24:17Z pjd $ 3271294Sngie 4271294Sngiedesc="rmdir returns ENOTDIR if a component of the path is not a directory" 5271294Sngie 6271294Sngiedir=`dirname $0` 7271294Sngie. ${dir}/../misc.sh 8271294Sngie 9271294Sngieecho "1..14" 10271294Sngie 11271294Sngien0=`namegen` 12271294Sngien1=`namegen` 13271294Sngie 14271294Sngieexpect 0 mkdir ${n0} 0755 15271294Sngieexpect 0 create ${n0}/${n1} 0644 16271294Sngieexpect ENOTDIR rmdir ${n0}/${n1}/test 17271294Sngieexpect 0 unlink ${n0}/${n1} 18271294Sngieexpect 0 rmdir ${n0} 19271294Sngie 20271294Sngieexpect 0 create ${n0} 0644 21271294Sngieexpect ENOTDIR rmdir ${n0} 22271294Sngieexpect 0 unlink ${n0} 23271294Sngie 24271294Sngieexpect 0 symlink ${n1} ${n0} 25271294Sngieexpect ENOTDIR rmdir ${n0} 26271294Sngieexpect 0 unlink ${n0} 27271294Sngie 28271294Sngieexpect 0 mkfifo ${n0} 0644 29271294Sngieexpect ENOTDIR rmdir ${n0} 30271294Sngieexpect 0 unlink ${n0} 31