3416500aef
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]. MFC after: 2 months Obtained from: https://github.com/pjd/pjdfstest/tree/0.1 Relnotes: yes Submitted by: asomers [1], ngie [2] Tested with: UFS, ZFS
29 lines
631 B
Bash
29 lines
631 B
Bash
#!/bin/sh
|
|
# vim: filetype=sh noexpandtab ts=8 sw=8
|
|
# $FreeBSD: head/tools/regression/pjdfstest/tests/open/16.t 219621 2011-03-13 19:35:13Z pjd $
|
|
|
|
dir=`dirname $0`
|
|
. ${dir}/../misc.sh
|
|
|
|
case "${os}" in
|
|
Darwin|Linux)
|
|
error=ELOOP
|
|
;;
|
|
*)
|
|
error=EMLINK
|
|
;;
|
|
esac
|
|
desc="open returns $error when O_NOFOLLOW was specified and the target is a symbolic link"
|
|
|
|
echo "1..6"
|
|
|
|
n0=`namegen`
|
|
n1=`namegen`
|
|
|
|
expect 0 symlink ${n0} ${n1}
|
|
expect $error open ${n1} O_RDONLY,O_CREAT,O_NOFOLLOW 0644
|
|
expect $error open ${n1} O_RDONLY,O_NOFOLLOW
|
|
expect $error open ${n1} O_WRONLY,O_NOFOLLOW
|
|
expect $error open ${n1} O_RDWR,O_NOFOLLOW
|
|
expect 0 unlink ${n1}
|