1166065Spjd#!/bin/sh 2166065Spjd# $FreeBSD: releng/10.2/tools/regression/pjdfstest/tests/rmdir/01.t 166065 2007-01-17 01:42:12Z pjd $ 3166065Spjd 4166065Spjddesc="rmdir returns ENOTDIR if a component of the path is not a directory" 5166065Spjd 6166065Spjddir=`dirname $0` 7166065Spjd. ${dir}/../misc.sh 8166065Spjd 9166065Spjdecho "1..14" 10166065Spjd 11166065Spjdn0=`namegen` 12166065Spjdn1=`namegen` 13166065Spjd 14166065Spjdexpect 0 mkdir ${n0} 0755 15166065Spjdexpect 0 create ${n0}/${n1} 0644 16166065Spjdexpect ENOTDIR rmdir ${n0}/${n1}/test 17166065Spjdexpect 0 unlink ${n0}/${n1} 18166065Spjdexpect 0 rmdir ${n0} 19166065Spjd 20166065Spjdexpect 0 create ${n0} 0644 21166065Spjdexpect ENOTDIR rmdir ${n0} 22166065Spjdexpect 0 unlink ${n0} 23166065Spjd 24166065Spjdexpect 0 symlink ${n1} ${n0} 25166065Spjdexpect ENOTDIR rmdir ${n0} 26166065Spjdexpect 0 unlink ${n0} 27166065Spjd 28166065Spjdexpect 0 mkfifo ${n0} 0644 29166065Spjdexpect ENOTDIR rmdir ${n0} 30166065Spjdexpect 0 unlink ${n0} 31