From 26cb8d518823044a9eae231885cb4120339f68cf Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 1 Feb 2022 16:36:59 -0500 Subject: tests: New test for -prune on a non-directory --- tests.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index 4e66f63..4248378 100755 --- a/tests.sh +++ b/tests.sh @@ -261,6 +261,7 @@ posix_tests=( test_perm_sticky test_prune + test_prune_file test_prune_or_print test_not_prune @@ -1950,6 +1951,10 @@ function test_prune() { bfs_diff basic -name foo -prune } +function test_prune_file() { + bfs_diff basic -print -name '?' -prune +} + function test_prune_or_print() { bfs_diff basic -name foo -prune -o -print } -- cgit v1.2.3