logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: 6c1f9819cfc7f30648c1776a7941c9351b86d94c
parent cf39918b4a57c4f8c8e4467b13b8b1c2ae73cf57
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue,  1 Mar 2022 14:48:42 +0100

test-bin/del: NetBSD/FreeBSD ignoring remove() errors as well

Diffstat:

Mtest-bin/del4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/test-bin/del b/test-bin/del @@ -17,6 +17,8 @@ nopermf_body() { then atf_expect_fail "glibc ignoring permission errors in remove(3)" fi + [ "$(uname -s)" = "NetBSD" ] && atf_expect_fail "NetBSD ignoring permission errors for remove()" + [ "$(uname -s)" = "FreeBSD" ] && atf_expect_fail "FreeBSD ignoring permission errors for remove()" touch inputs/chmod_000 || atf_fail "touching chmod_000" chmod 0000 inputs/chmod_000 || atf_fail "chmod 0000 chmod_000" @@ -34,6 +36,8 @@ nopermd_body() { then atf_expect_fail "glibc ignoring permission errors in remove(3)" fi + [ "$(uname -s)" = "NetBSD" ] && atf_expect_fail "NetBSD ignoring permission errors for remove()" + [ "$(uname -s)" = "FreeBSD" ] && atf_expect_fail "FreeBSD ignoring permission errors for remove()" mkdir -p inputs/chmod_000.d || atf_fail "mkdir chmod_000.d" chmod 0000 inputs/chmod_000.d || atf_fail "chmod 0000 chmod_000.d"