Avoid test failures when root (/) is not readable.
authorJim Meyering <meyering@redhat.com>
Sat, 23 Feb 2008 22:22:58 +0000 (23:22 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 23 Feb 2008 22:25:17 +0000 (23:25 +0100)
commitf656cafd4c290db7abb1ac1d357696ffdc1793b7
treee800e999bacd826cbae5daac53e7dc0c288bb4a7
parenta15329798c52c57cc16fc24265327d8b1c73ab41
Avoid test failures when root (/) is not readable.

* tests/test-lib.sh (require_readable_root_): New function.
* tests/misc/pwd-long: Skip this test when / is unreadable.
* tests/du/slash: Likewise.
This is required at least for Mandrake/Mandriva in "secure" mode.
Reported by Theodoros V. Kalamatianos in
http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/12800
tests/du/slash
tests/misc/pwd-long
tests/test-lib.sh