summaryrefslogtreecommitdiffstats
path: root/tools/regression/fstest/tests/unlink/08.t
blob: e872a1977314bc3dc015b11b6492e82d06bff2e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# $FreeBSD$

desc="unlink may return EPERM if the named file is a directory"

dir=`dirname $0`
. ${dir}/../misc.sh

echo "1..3"

n0=`namegen`

expect 0 mkdir ${n0} 0755
expect "0|EPERM" unlink ${n0}
expect "0|ENOENT" rmdir ${n0}
OpenPOWER on IntegriCloud