summaryrefslogtreecommitdiff
path: root/tests/rm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rm')
-rwxr-xr-xtests/rm/no-give-up10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/rm/no-give-up b/tests/rm/no-give-up
index dbd99eb14..d90e9e6dc 100755
--- a/tests/rm/no-give-up
+++ b/tests/rm/no-give-up
@@ -34,10 +34,12 @@ trap '(exit $?); exit $?' 1 2 13 15
framework_failure=0
mkdir -p $tmp || framework_failure=1
cd $tmp || framework_failure=1
-mkdir d
-touch d/f
-chown -R $NON_ROOT_USERNAME d
-chmod go= .
+mkdir d || framework_failure=1
+touch d/f || framework_failure=1
+chown -R $NON_ROOT_USERNAME d || framework_failure=1
+
+# Ensure that non-root can access files in root-owned ".".
+chmod go=x . || framework_failure=1
if test $framework_failure = 1; then
echo "$0: failure in testing framework" 1>&2