summaryrefslogtreecommitdiff
path: root/tests/null-byte
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/null-byte
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/null-byte')
-rwxr-xr-xtests/null-byte2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/null-byte b/tests/null-byte
index f338883c..c59f56bd 100755
--- a/tests/null-byte
+++ b/tests/null-byte
@@ -56,7 +56,7 @@ echo xxx >exp || framework_failure_
grep xxx in >out || fail=1
compare exp out || fail=1
-printf '%s\n' xxx 'Binary file in matches' > exp || framework_failure_
+printf 'xxx\n' > exp || framework_failure_
grep -E 'xxx|z' in >out || fail=1
compare exp out || fail=1