]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r296766:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 22 Mar 2016 19:29:55 +0000 (19:29 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 22 Mar 2016 19:29:55 +0000 (19:29 +0000)
commita822c4e2efe5d78f34bac1a5189e681bfbb21b39
tree1122eb7183010744123747de37ff63d7bb9fc994
parent563ecea471cec290c272e5ddabc4d1f65fa09309
MFC r296766:

Better handle filesystems mounted with -o noexec

ftruncate/11, open/20, and truncate/11 copy sleep(1) to a temporary file on the
target filesystem, execute the binary, then expect a result. This doesn't work
with scenarios where the target binary cannot be executed, e.g. the filesystem
was mounted with -o noexec.

Ensure the filesystem hasn't been mounted with -o noexec for the testcases
before executing them.

git-svn-id: svn://svn.freebsd.org/base/stable/10@297195 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/pjdfstest/tests/ftruncate/11.t
contrib/pjdfstest/tests/misc.sh
contrib/pjdfstest/tests/open/20.t
contrib/pjdfstest/tests/truncate/11.t