]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: skip some parts of 'tests/rmdir/ignore.sh' if run as root
authorBernhard Voelker <mail@bernhard-voelker.de>
Fri, 31 Jul 2020 17:49:35 +0000 (19:49 +0200)
committerBernhard Voelker <mail@bernhard-voelker.de>
Fri, 31 Jul 2020 17:49:35 +0000 (19:49 +0200)
commitc0e5f8c59b951ae13ca9cb9945cd77163489e1d9
treec82ae87e8bdefc12e95b752154934411da463530
parent881c3f20ec435a9c57390853483942fa1101c32b
tests: skip some parts of 'tests/rmdir/ignore.sh' if run as root

Parts of this test expect that the rmdir syscall returns with EPERM,
but the root user does not see that.

* tests/rmdir/ignore.sh: Add uid_is_privileged_ guards around parts
of the test which expect rmdir() to fail with EPERM.

Reported by Nick Alcock <nix@esperi.org.uk> in
https://bugs.gnu.org/42633
tests/rmdir/ignore.sh