summaryrefslogtreecommitdiffstats
path: root/tests/common
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/common
parent0410d8ee2575158686767ae0b0a7ad46d1ea54eb (diff)
downloadbfs-597aa41a5c1fc8f51e45dfc095eaf1aa99821bca.tar.xz
tests: New inaccessible/ directory tree for permission errors
Diffstat (limited to 'tests/common')
-rw-r--r--tests/common/empty_error.out4
-rw-r--r--tests/common/empty_error.sh8
2 files changed, 2 insertions, 10 deletions
diff --git a/tests/common/empty_error.out b/tests/common/empty_error.out
index da45e23..49f773d 100644
--- a/tests/common/empty_error.out
+++ b/tests/common/empty_error.out
@@ -1,3 +1 @@
-./bar
-./baz
-./qux
+inaccessible/file
diff --git a/tests/common/empty_error.sh b/tests/common/empty_error.sh
index 7c8049c..3438cca 100644
--- a/tests/common/empty_error.sh
+++ b/tests/common/empty_error.sh
@@ -1,7 +1 @@
-cd "$TEST"
-
-"$XTOUCH" -p foo/ bar/ baz qux
-chmod -r foo baz
-defer chmod +r foo baz
-
-! bfs_diff . -empty
+! bfs_diff inaccessible -empty