From bfc158757e1018606a75c450900d2ec1da5cf387 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 10 Feb 2022 15:42:52 -0500 Subject: tests: Add a test that -exit suppresses the implicit -print --- tests.sh | 5 +++++ tests/test_exit_no_implicit_print.out | 0 2 files changed, 5 insertions(+) create mode 100644 tests/test_exit_no_implicit_print.out 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 -- cgit v1.2.3