summaryrefslogtreecommitdiff
path: root/tests/chown/09.t
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-06-28 08:48:09 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-06-28 08:48:09 +0000
commita5b450a49bc66a4d95320117399db1432dab6872 (patch)
tree39a39ec551b0e354cb0265a0b8c7f2b5ba521430 /tests/chown/09.t
parent9a56205fc912cc30c498cd8ab536eef96373b16f (diff)
The summary of changes is as follows.. Generic changes:: - Added configure support [2]. - Check for lchmod filesystem support with create_file(..); for testcases that require lchmod, skip the testcase -- otherwise use chmod directly [1]. - Added Travis CI integration [2]. - Added utimensat testcases [1]. Linux support:: - Fixed Linux support to pass on later supported versions of Fedora/Ubuntu [2]. - Conditionally enable posix_fallocate(2) support [2]. OSX support:: - Fixed compilation on OSX [2]. - Added partial OSX support (the test run isn't fully green yet) [2]. Obtained from: https://github.com/pjd/pjdfstest/tree/0.1 Submitted by: asomers [1], ngie [2]
Notes
svn path=/vendor/pjdfstest/dist/; revision=320447 svn path=/vendor/pjdfstest/0.1/; revision=320449; tag=vendor/pjdfstest/0.1
Diffstat (limited to 'tests/chown/09.t')
-rw-r--r--tests/chown/09.t9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/chown/09.t b/tests/chown/09.t
index 455f43690706..9fd44df5fe01 100644
--- a/tests/chown/09.t
+++ b/tests/chown/09.t
@@ -1,4 +1,5 @@
#!/bin/sh
+# vim: filetype=sh noexpandtab ts=8 sw=8
# $FreeBSD: head/tools/regression/pjdfstest/tests/chown/09.t 211352 2010-08-15 21:24:17Z pjd $
desc="chown returns EROFS if the named file resides on a read-only file system"
@@ -14,9 +15,9 @@ n0=`namegen`
n1=`namegen`
expect 0 mkdir ${n0} 0755
-n=`mdconfig -a -n -t malloc -s 1m`
-newfs /dev/md${n} >/dev/null
-mount /dev/md${n} ${n0}
+n=`mdconfig -a -n -t malloc -s 1m` || exit
+newfs /dev/md${n} >/dev/null || exit
+mount /dev/md${n} ${n0} || exit
expect 0 create ${n0}/${n1} 0644
expect 0 chown ${n0}/${n1} 65534 65534
expect 65534,65534 stat ${n0}/${n1} uid,gid
@@ -28,5 +29,5 @@ expect 0 chown ${n0}/${n1} 65533 65533
expect 65533,65533 stat ${n0}/${n1} uid,gid
expect 0 unlink ${n0}/${n1}
umount /dev/md${n}
-mdconfig -d -u ${n}
+mdconfig -d -u ${n} || exit
expect 0 rmdir ${n0}