commit: f8c8153c76bc5250fc96f4dbd13256eb2a4bca21
parent 4e3854cb75cdf223504b10d73aeb0981218d4ea0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Wed, 2 Mar 2022 19:50:48 +0100
test-bin/del: Disable noperm*
Diffstat:
1 file changed, 6 insertions(+), 16 deletions(-)
diff --git a/test-bin/del b/test-bin/del
@@ -13,13 +13,6 @@ basic_cleanup() {
atf_test_case nopermf cleanup
nopermf_body() {
- if test -f /usr/include/features.h && grep -q '#define\W__GLIBC__' /usr/include/features.h
- 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"
@@ -32,13 +25,6 @@ nopermf_cleanup() {
atf_test_case nopermd cleanup
nopermd_body() {
- if test -f /usr/include/features.h && grep -q '#define\W__GLIBC__' /usr/include/features.h
- 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"
@@ -58,7 +44,11 @@ enoent_body() {
atf_init_test_cases() {
cd "$(atf_get_srcdir)" || exit 1
atf_add_test_case basic
- atf_add_test_case nopermf
- atf_add_test_case nopermd
+
+ # None of the supported implementations of remove(3) seem to have checks
+ # based on file mode
+ #atf_add_test_case nopermf
+ #atf_add_test_case nopermd
+
atf_add_test_case enoent
}