summaryrefslogtreecommitdiff
path: root/tests/chflags/01.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/chflags/01.t')
-rw-r--r--tests/chflags/01.t7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/chflags/01.t b/tests/chflags/01.t
index 62713fd0347aa..2124678343d3b 100644
--- a/tests/chflags/01.t
+++ b/tests/chflags/01.t
@@ -1,4 +1,5 @@
#!/bin/sh
+# vim: filetype=sh noexpandtab ts=8 sw=8
# $FreeBSD: head/tools/regression/pjdfstest/tests/chflags/01.t 211474 2010-08-18 22:06:43Z pjd $
desc="chflags returns ENOTDIR if a component of the path prefix is not a directory"
@@ -7,6 +8,8 @@ dir=`dirname $0`
. ${dir}/../misc.sh
require chflags
+if requires_root
+then
echo "1..17"
@@ -20,3 +23,7 @@ for type in regular fifo block char socket; do
expect 0 unlink ${n0}/${n1}
done
expect 0 rmdir ${n0}
+
+else
+echo "1..1"
+fi