Deleted Added
full compact
2c2
< # $FreeBSD: head/tools/regression/fstest/tests/open/11.t 166065 2007-01-17 01:42:12Z pjd $
---
> # $FreeBSD: head/tools/regression/fstest/tests/open/11.t 210984 2010-08-06 23:58:54Z pjd $
11c11,20
< echo "1..24"
---
> case "${os}:${fs}" in
> FreeBSD:ZFS)
> echo "1..12"
> ;;
> FreeBSD:UFS)
> echo "1..24"
> ;;
> *)
> quick_exit
> esac
20a30
> todo FreeBSD:ZFS "When fle is protected by SF_APPEND, open(O_TRUNC) should return EPERM."
21a32
> todo FreeBSD:ZFS "When fle is protected by SF_APPEND, open(O_TRUNC) should return EPERM."
22a34
> todo FreeBSD:ZFS "When fle is protected by SF_APPEND, open(O_TRUNC) should return EPERM."
23a36
> todo FreeBSD:ZFS "When fle is protected by SF_APPEND, open(O_TRUNC) should return EPERM."
28,39c41,56
< expect 0 create ${n0} 0644
< expect 0 chflags ${n0} UF_APPEND
< expect 0 open ${n0} O_WRONLY,O_APPEND
< expect 0 open ${n0} O_RDWR,O_APPEND
< expect EPERM open ${n0} O_WRONLY
< expect EPERM open ${n0} O_RDWR
< expect EPERM open ${n0} O_RDONLY,O_TRUNC
< expect EPERM open ${n0} O_RDONLY,O_APPEND,O_TRUNC
< expect EPERM open ${n0} O_WRONLY,O_APPEND,O_TRUNC
< expect EPERM open ${n0} O_RDWR,O_APPEND,O_TRUNC
< expect 0 chflags ${n0} none
< expect 0 unlink ${n0}
---
> case "${os}:${fs}" in
> FreeBSD:UFS)
> expect 0 create ${n0} 0644
> expect 0 chflags ${n0} UF_APPEND
> expect 0 open ${n0} O_WRONLY,O_APPEND
> expect 0 open ${n0} O_RDWR,O_APPEND
> expect EPERM open ${n0} O_WRONLY
> expect EPERM open ${n0} O_RDWR
> expect EPERM open ${n0} O_RDONLY,O_TRUNC
> expect EPERM open ${n0} O_RDONLY,O_APPEND,O_TRUNC
> expect EPERM open ${n0} O_WRONLY,O_APPEND,O_TRUNC
> expect EPERM open ${n0} O_RDWR,O_APPEND,O_TRUNC
> expect 0 chflags ${n0} none
> expect 0 unlink ${n0}
> ;;
> esac