]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r307190,r307196,r307204,r307205:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Feb 2017 02:51:53 +0000 (02:51 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Feb 2017 02:51:53 +0000 (02:51 +0000)
commitb3d3e4cf0e8e5f642fa00d346fd76ca68a60e3e1
tree68ecbbd45679e080b60b6c34c52816d89987dc8f
parentfc71a0688d221bd7ed318518e7f6ad73d63bc280
MFC r307190,r307196,r307204,r307205:

r307190:

Skip :uchg on FreeBSD

Unfortunately removing files with uchg set always succeeds with root on
FreeBSD. Unfortunately running the test as an unprivileged user isn't doable
because mounting tmpfs requires root

PR: 212861

r307196:

Port contrib/netbsd-tests/fs/tmpfs/h_tools.c to FreeBSD

- Add inttypes.h #include for PRId64 macro
- Use FreeBSD's copy of getfh(2), which doesn't include a `fh_size` parameter.
  Use sizeof(fhandle_t) instead as the size of fhp is always fixed as
  fhandle_t, unlike NetBSD's copy of fhp, which is void*.

r307204:

Expect :large to fail on FreeBSD

FreeBSD doesn't appear to validate large -o size values like
NetBSD does

PR: 212862

r307205:

Change atf_skip call to atf_expect_fail to make it clear that a failure is
expected

PR: 212861
Suggested by: jmmv

git-svn-id: svn://svn.freebsd.org/base/stable/10@313514 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/netbsd-tests/fs/tmpfs/h_tools.c
contrib/netbsd-tests/fs/tmpfs/t_mount.sh
contrib/netbsd-tests/fs/tmpfs/t_remove.sh