summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-02-10 15:42:52 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-02-10 15:43:14 -0500
commitbfc158757e1018606a75c450900d2ec1da5cf387 (patch)
treeaaaaeaa5f404b25daa366c8930315630b8a83dab
parentf577efbbab625dbc9a0346ac3820944b6bab2b2d (diff)
downloadbfs-bfc158757e1018606a75c450900d2ec1da5cf387.tar.xz
tests: Add a test that -exit suppresses the implicit -print
-rwxr-xr-xtests.sh5
-rw-r--r--tests/test_exit_no_implicit_print.out0
2 files changed, 5 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
index dd4f6ab..8b2bff2 100755
--- a/tests.sh
+++ b/tests.sh
@@ -358,6 +358,7 @@ bsd_tests=(
test_execdir_ulimit
test_exit
+ test_exit_no_implicit_print
test_flags
@@ -2724,6 +2725,10 @@ function test_exit() {
bfs_diff basic/g -print -name g -exit
}
+function test_exit_no_implicit_print() {
+ bfs_diff basic -not -name foo -o -exit
+}
+
function test_printx() {
bfs_diff weirdnames -printx
}
diff --git a/tests/test_exit_no_implicit_print.out b/tests/test_exit_no_implicit_print.out
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/test_exit_no_implicit_print.out