summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-06-07 16:37:53 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-06-07 16:42:55 -0400
commit8896f35294649975c1df22a8b57db4333cc56091 (patch)
tree10eb0664f70cdc1d837a4f469d720149042dc8f9 /tests.sh
parenta9f97adf92f8000a198de2c48132ba4a39ed1d5c (diff)
downloadbfs-8896f35294649975c1df22a8b57db4333cc56091.tar.xz
parse: Prohibit actions inside -exclude
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
index 77a5da1..88b6988 100755
--- a/tests.sh
+++ b/tests.sh
@@ -601,6 +601,7 @@ bfs_tests=(
test_exclude_name
test_exclude_depth
test_exclude_mindepth
+ test_exclude_print
# Primaries
@@ -2653,6 +2654,10 @@ function test_exclude_mindepth() {
bfs_diff basic -mindepth 3 -exclude -name foo
}
+function test_exclude_print() {
+ ! invoke_bfs basic -exclude -print 2>/dev/null
+}
+
BOL=
EOL='\n'