mirror of
https://github.com/uutils/grep.git
synced 2026-06-10 16:15:11 -07:00
grep: Fix slow_path_binary_handling test
This commit is contained in:
@@ -1530,13 +1530,6 @@ fn slow_path_binary_handling() {
|
||||
.succeeds()
|
||||
.stdout_is_bytes(b"hit\0\n");
|
||||
|
||||
// --binary-files=without-match bails out on an invalid-UTF-8 match.
|
||||
scene
|
||||
.cmd(env!("CARGO_BIN_EXE_grep"))
|
||||
.args(&["--binary-files=without-match", "[a]", "bad"])
|
||||
.fails_with_code(1)
|
||||
.no_output();
|
||||
|
||||
// A NUL after the matched line means binariness is discovered at EOF, so
|
||||
// the line is printed first and the notice is emitted during finalization.
|
||||
scene.fixtures.write_bytes("late", b"hit\nno\0\n");
|
||||
|
||||
Reference in New Issue
Block a user