summaryrefslogtreecommitdiff
path: root/tests/rm/fail-eacces
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-02-18 17:40:06 +0100
committerJim Meyering <jim@meyering.net>2007-02-18 17:40:06 +0100
commitc95bb0c6f075e9301c13bbfc107517cde1575bb4 (patch)
tree13cd96f5dc192757373ae442f1fa3052acbcc6cb /tests/rm/fail-eacces
parentd07d81df2721a43b7b1dfd14e7c9b856bc5f4309 (diff)
downloadcoreutils-c95bb0c6f075e9301c13bbfc107517cde1575bb4.tar.xz
* tests/rm/fail-eacces: Skip this test when running as root.
Reported by Matthew Woehlke.
Diffstat (limited to 'tests/rm/fail-eacces')
-rwxr-xr-xtests/rm/fail-eacces3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/rm/fail-eacces b/tests/rm/fail-eacces
index 29bc91154..b32284864 100755
--- a/tests/rm/fail-eacces
+++ b/tests/rm/fail-eacces
@@ -1,7 +1,7 @@
#!/bin/sh
# Ensure that rm -rf unremovable-non-dir gives a diagnostic.
-# Copyright (C) 2006 Free Software Foundation, Inc.
+# Copyright (C) 2006-2007 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
@@ -24,6 +24,7 @@ if test "$VERBOSE" = yes; then
fi
. $srcdir/../lang-default
+PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
pwd=`pwd`
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$