From 597aa41a5c1fc8f51e45dfc095eaf1aa99821bca Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 4 Jun 2024 16:40:31 -0400 Subject: tests: New inaccessible/ directory tree for permission errors --- tests/posix/depth_error.out | 6 ++++-- tests/posix/depth_error.sh | 8 +------- tests/posix/prune_error.out | 2 +- tests/posix/prune_error.sh | 9 +-------- 4 files changed, 7 insertions(+), 18 deletions(-) (limited to 'tests/posix') diff --git a/tests/posix/depth_error.out b/tests/posix/depth_error.out index 7ed5f0d..c4f8ce4 100644 --- a/tests/posix/depth_error.out +++ b/tests/posix/depth_error.out @@ -1,2 +1,4 @@ -. -./foo +inaccessible +inaccessible/dir +inaccessible/file +inaccessible/link diff --git a/tests/posix/depth_error.sh b/tests/posix/depth_error.sh index db414ba..9b29385 100644 --- a/tests/posix/depth_error.sh +++ b/tests/posix/depth_error.sh @@ -1,7 +1 @@ -cd "$TEST" -"$XTOUCH" -p foo/bar - -chmod a-r foo -defer chmod +r foo - -! bfs_diff . -depth +! bfs_diff inaccessible -depth diff --git a/tests/posix/prune_error.out b/tests/posix/prune_error.out index 9c558e3..436c48e 100644 --- a/tests/posix/prune_error.out +++ b/tests/posix/prune_error.out @@ -1 +1 @@ -. +inaccessible diff --git a/tests/posix/prune_error.sh b/tests/posix/prune_error.sh index 9158a17..07a2523 100644 --- a/tests/posix/prune_error.sh +++ b/tests/posix/prune_error.sh @@ -1,8 +1 @@ -cd "$TEST" -"$XTOUCH" -p foo/bar -ln -s foo/bar baz - -chmod a-rx foo -defer chmod +rx foo - -! bfs_diff -L . -name '???' -prune -o -print +! bfs_diff -L inaccessible -path '*/*' -prune -o -print -- cgit v1.2.3