summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-02-23 23:22:58 +0100
committerJim Meyering <meyering@redhat.com>2008-02-23 23:25:17 +0100
commitf656cafd4c290db7abb1ac1d357696ffdc1793b7 (patch)
treee800e999bacd826cbae5daac53e7dc0c288bb4a7 /tests/misc
parenta15329798c52c57cc16fc24265327d8b1c73ab41 (diff)
downloadcoreutils-f656cafd4c290db7abb1ac1d357696ffdc1793b7.tar.xz
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
Diffstat (limited to 'tests/misc')
-rwxr-xr-xtests/misc/pwd-long3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/misc/pwd-long b/tests/misc/pwd-long
index 6ab218810..d931d3462 100755
--- a/tests/misc/pwd-long
+++ b/tests/misc/pwd-long
@@ -1,7 +1,7 @@
#!/bin/sh
# Ensure that pwd works even when run from a very deep directory.
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -20,6 +20,7 @@
. $srcdir/../require-perl
. $srcdir/../test-lib.sh
+require_readable_root_
ARGV_0=$0
export ARGV_0