From f656cafd4c290db7abb1ac1d357696ffdc1793b7 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 23 Feb 2008 23:22:58 +0100 Subject: 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/du') diff --git a/tests/du/slash b/tests/du/slash index dd9175112..7f218c928 100755 --- a/tests/du/slash +++ b/tests/du/slash @@ -1,7 +1,7 @@ #!/bin/sh # `du /' would omit the `/' on the last line. -# Copyright (C) 2003, 2004, 2006-2007 Free Software Foundation, Inc. +# Copyright (C) 2003, 2004, 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 @@ -22,6 +22,7 @@ if test "$VERBOSE" = yes; then fi . $srcdir/../test-lib.sh +require_readable_root_ fail=0 -- cgit v1.2.3-54-g00ecf