diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-02-01 16:36:59 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-02-01 16:39:22 -0500 |
commit | 26cb8d518823044a9eae231885cb4120339f68cf (patch) | |
tree | 18f5d85d5e7d62410cf3d2695b67643c4523ccf0 /tests.sh | |
parent | d6d3d9550680ba1f9d8f94635d5eb74c45c08cfc (diff) | |
download | bfs-26cb8d518823044a9eae231885cb4120339f68cf.tar.xz |
tests: New test for -prune on a non-directory
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 } |