diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-02-10 15:42:52 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-02-10 15:43:14 -0500 |
commit | bfc158757e1018606a75c450900d2ec1da5cf387 (patch) | |
tree | aaaaeaa5f404b25daa366c8930315630b8a83dab | |
parent | f577efbbab625dbc9a0346ac3820944b6bab2b2d (diff) | |
download | bfs-bfc158757e1018606a75c450900d2ec1da5cf387.tar.xz |
tests: Add a test that -exit suppresses the implicit -print
-rwxr-xr-x | tests.sh | 5 | ||||
-rw-r--r-- | tests/test_exit_no_implicit_print.out | 0 |
2 files changed, 5 insertions, 0 deletions
@@ -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 |