summaryrefslogtreecommitdiffstats
path: root/tests/stddirs.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-06-04 16:40:31 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-06-04 16:40:31 -0400
commit597aa41a5c1fc8f51e45dfc095eaf1aa99821bca (patch)
tree73ab49920b375e43ccfa14c6beeee8e6694d97d1 /tests/stddirs.sh
parent0410d8ee2575158686767ae0b0a7ad46d1ea54eb (diff)
downloadbfs-597aa41a5c1fc8f51e45dfc095eaf1aa99821bca.tar.xz
tests: New inaccessible/ directory tree for permission errors
Diffstat (limited to 'tests/stddirs.sh')
-rw-r--r--tests/stddirs.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/stddirs.sh b/tests/stddirs.sh
index b908ebe..989e7fe 100644
--- a/tests/stddirs.sh
+++ b/tests/stddirs.sh
@@ -48,6 +48,12 @@ make_loops() {
ln -s deeply/nested/loop/nested "$1/skip"
}
+# Creates a file+directory structure with inaccessible files
+make_inaccessible() {
+ "$XTOUCH" -p -M000 "$1/file" "$1/dir/"
+ ln -s dir/file "$1/link"
+}
+
# Creates a file+directory structure with varying timestamps
make_times() {
"$XTOUCH" -p -t "1991-12-14 00:00" "$1/a"
@@ -136,6 +142,7 @@ make_stddirs() {
make_perms "$TMP/perms"
make_links "$TMP/links"
make_loops "$TMP/loops"
+ make_inaccessible "$TMP/inaccessible"
make_times "$TMP/times"
make_weirdnames "$TMP/weirdnames"
make_deep "$TMP/deep"