svn commit: r307190 - head/contrib/netbsd-tests/fs/tmpfs
Julio Merino
julio at meroh.net
Thu Oct 13 07:20:47 UTC 2016
On Thu, Oct 13, 2016 at 3:02 AM, Ngie Cooper <ngie at freebsd.org> wrote:
> Author: ngie
> Date: Thu Oct 13 07:02:54 2016
> New Revision: 307190
> URL: https://svnweb.freebsd.org/changeset/base/307190
>
> Log:
> 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
> Sponsored by: Dell EMC Isilon
>
> Modified:
> head/contrib/netbsd-tests/fs/tmpfs/t_remove.sh
>
> Modified: head/contrib/netbsd-tests/fs/tmpfs/t_remove.sh
> ============================================================
> ==================
> --- head/contrib/netbsd-tests/fs/tmpfs/t_remove.sh Thu Oct 13
> 06:56:23 2016 (r307189)
> +++ head/contrib/netbsd-tests/fs/tmpfs/t_remove.sh Thu Oct 13
> 07:02:54 2016 (r307190)
> @@ -53,6 +53,10 @@ uchg_head() {
> atf_set "require.user" "root"
> }
> uchg_body() {
> + # Begin FreeBSD
> + atf_skip "this fails on FreeBSD with root - bug 212861"
> + # End FreeBSD
>
This is a bad way of disabling a test due to a known bug because, when the
bug is resolved, the test won't notice. You should be using the "expected
failures" functionality if possible, and based on the change description, I
think you can do this here easily. Try:
atf_expect_fail "FreeBSD bug 213861 blah blah"
right before the line that triggers the test failure.
--
Julio Merino -- http://julio.meroh.net/
More information about the svn-src-all
mailing list