summaryrefslogtreecommitdiff
path: root/tests/invalid-multibyte-infloop
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2020-09-17 07:54:38 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2020-09-17 12:15:22 -0700
commit271793f09cc604ad54ad89b18110716555cc748b (patch)
tree4c163619de49bb710bad7a72d9f33c4f461d79ea /tests/invalid-multibyte-infloop
parentc3245083337896f266494cbd17c7350dafddb9eb (diff)
downloadgrep-271793f09cc604ad54ad89b18110716555cc748b.tar.gz
Send "Binary file FOO matches" to stderr
* NEWS, doc/grep.texi: Mention this change (Bug#29668). * src/grep.c (grep): Send "Binary file FOO matches" to stderr instead of stdout. * tests/encoding-error, tests/invalid-multibyte-infloop: * tests/null-byte, tests/pcre-count, tests/surrogate-pair: * tests/symlink, tests/unibyte-binary: Adjust tests to match new behavior. In all cases this simplifies the tests, which is a good sign.
Diffstat (limited to 'tests/invalid-multibyte-infloop')
-rwxr-xr-xtests/invalid-multibyte-infloop4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/invalid-multibyte-infloop b/tests/invalid-multibyte-infloop
index 5b3bdfc5..b4ad14bb 100755
--- a/tests/invalid-multibyte-infloop
+++ b/tests/invalid-multibyte-infloop
@@ -24,12 +24,10 @@ else
test $status -eq 2
fi || fail=1
-echo 'Binary file input matches' >binary-file-matches
-
LC_ALL=en_US.UTF-8 timeout 10 grep -F $(encode A) input > out
status=$?
if test $status -eq 0; then
- compare binary-file-matches out
+ compare /dev/null out
elif test $status -eq 1; then
compare_dev_null_ /dev/null out
else