diff options
-rwxr-xr-x | tests.sh | 5 | ||||
-rw-r--r-- | tests/test_prune_file.out | 10 |
2 files changed, 15 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 } diff --git a/tests/test_prune_file.out b/tests/test_prune_file.out new file mode 100644 index 0000000..7575ae4 --- /dev/null +++ b/tests/test_prune_file.out @@ -0,0 +1,10 @@ +basic +basic/a +basic/b +basic/c +basic/e +basic/g +basic/i +basic/j +basic/k +basic/l |