summaryrefslogtreecommitdiffstats
path: root/tests/bfs
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/bfs
parent0410d8ee2575158686767ae0b0a7ad46d1ea54eb (diff)
downloadbfs-597aa41a5c1fc8f51e45dfc095eaf1aa99821bca.tar.xz
tests: New inaccessible/ directory tree for permission errors
Diffstat (limited to 'tests/bfs')
-rw-r--r--tests/bfs/xtype_depth.sh9
-rw-r--r--tests/bfs/xtype_reorder.sh3
2 files changed, 2 insertions, 10 deletions
diff --git a/tests/bfs/xtype_depth.sh b/tests/bfs/xtype_depth.sh
index 93c4fb7..4683764 100644
--- a/tests/bfs/xtype_depth.sh
+++ b/tests/bfs/xtype_depth.sh
@@ -1,9 +1,2 @@
-cd "$TEST"
-"$XTOUCH" -p foo/bar
-ln -s foo/bar baz
-
-chmod a-rx foo
-defer chmod +rx foo
-
# Make sure -xtype is considered side-effecting for facts_when_impure
-! invoke_bfs . -xtype l -depth 100
+! invoke_bfs inaccessible/link -xtype l -depth 100
diff --git a/tests/bfs/xtype_reorder.sh b/tests/bfs/xtype_reorder.sh
index 8d75d7d..c1d94f3 100644
--- a/tests/bfs/xtype_reorder.sh
+++ b/tests/bfs/xtype_reorder.sh
@@ -1,4 +1,3 @@
# Make sure -xtype is not reordered in front of anything -- if -xtype runs
# before -links 100, it will report an ELOOP error
-bfs_diff loops -links 100 -xtype l
-invoke_bfs loops -links 100 -xtype l
+bfs_diff inaccessible/link -links 100 -xtype l