summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-10-01 11:39:18 -0400
committerTavian Barnes <tavianator@tavianator.com>2021-10-01 11:39:18 -0400
commiteb9f3227a05102248243f57dd66d032298ea3d39 (patch)
treebeebfaf449303268917b2a21eeaab22255fa8012
parentd1c441d3c80abfa6d6cb877270f200cc4edb6364 (diff)
downloadbfs-eb9f3227a05102248243f57dd66d032298ea3d39.tar.xz
tests: Add a test for an operator in an unexpected position
-rwxr-xr-xtests.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
index 01b5a42..df6eb04 100755
--- a/tests.sh
+++ b/tests.sh
@@ -664,6 +664,8 @@ bfs_tests=(
test_expr_flag_path
test_expr_path_flag
+ test_unexpected_operator
+
test_typo
# Flags
@@ -3153,6 +3155,9 @@ function test_stderr_fails_loudly() {
fi
}
+function test_unexpected_operator() {
+ ! quiet invoke_bfs \! -o -print
+}
BOL=
EOL='\n'