summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests.sh20
1 files changed, 8 insertions, 12 deletions
diff --git a/tests/tests.sh b/tests/tests.sh
index 66a79a8..121cd85 100755
--- a/tests/tests.sh
+++ b/tests/tests.sh
@@ -393,18 +393,14 @@ function make_deep() {
local names="$name/$name/$name/$name"
for i in {0..9} A B C D E F; do
- (
- mkdir "$1/$i"
- cd "$1/$i"
-
- # 4 * 1024 == 4096 == PATH_MAX
- for _ in {1..4}; do
- mkdir -p "$names"
- cd "$names"
- done
-
- "$XTOUCH" "$name"
- )
+ "$XTOUCH" -p "$1/$i/$name"
+
+ # 4 * 1024 == 4096 == PATH_MAX
+ for _ in {1..4}; do
+ mv "$1/$i/$name" "$1/"
+ mkdir -p "$1/$i/$names"
+ mv "$1/$name" "$1/$i/$names/"
+ done
done
}
make_deep "$TMP/deep"