summaryrefslogtreecommitdiff
path: root/tests/du/two-args
diff options
context:
space:
mode:
Diffstat (limited to 'tests/du/two-args')
-rwxr-xr-xtests/du/two-args6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/du/two-args b/tests/du/two-args
index a9a3e75b0..9d9330e95 100755
--- a/tests/du/two-args
+++ b/tests/du/two-args
@@ -24,6 +24,12 @@ fi
. $srcdir/../test-lib.sh
+# Run this test from a sub-directory one level deeper than normal,
+# so that the "du .." below doesn't traverse sibling directories
+# that may be inaccessible due concurrently-running tests.
+mkdir sub || framework_failure
+cd sub || framework_failure
+
t=t
mkdir -p $t/1 $t/2 || framework_failure