summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-03-18 21:27:47 +0100
committerJim Meyering <jim@meyering.net>2007-03-18 22:37:54 +0100
commit5bc4b89be85cb2f3050f6f78dec352e0e64c3da3 (patch)
tree3cf6b74f47e557cbb0e4edc1554902ebad551a46 /tests
parent553d347d3e08e00ee4f9df520b37c964c3f26e28 (diff)
downloadcoreutils-5bc4b89be85cb2f3050f6f78dec352e0e64c3da3.tar.xz
Fix a generic NFS-related test failure.
* tests/mkdir/p-3: When setting up an unreadable "." in an inaccessible parent, make the parent inaccessible *after* making "." unreadable. Otherwise, running "chmod a-r ." in an already- inaccessible parent would fail on NFS with "Stale NFS file handle". Signed-off-by: Jim Meyering <jim@meyering.net>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/mkdir/p-34
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mkdir/p-3 b/tests/mkdir/p-3
index 7f367178e..5c2a76a9d 100755
--- a/tests/mkdir/p-3
+++ b/tests/mkdir/p-3
@@ -3,7 +3,7 @@
# causes immediate failure. Also, ensure that we don't create
# subsequent, relative command-line arguments in the wrong place.
-# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2005-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
@@ -54,7 +54,7 @@ test -d "$p/b/b" && test -d "$p/z" || fail=1
# Same as above, but a trailing relative name in an unreadable directory
# whose parent is inaccessible. coreutils 5.97 fails this test.
-(cd no-acce3s/d && chmod a-rx .. && chmod a-r . && mkdir -p a/b "$p/b/c" d/e &&
+(cd no-acce3s/d && chmod a-r . && chmod a-rx .. && mkdir -p a/b "$p/b/c" d/e &&
test -d a/b && test -d d/e) || fail=1
test -d "$p/b/c" || fail=1