mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
do not pipe data into failure tests (#2072)
Co-authored-by: joppich <joppich@bricknet.de>
This commit is contained in:
parent
a76d452f75
commit
f33320e581
1 changed files with 3 additions and 9 deletions
|
@ -25,11 +25,7 @@ fn test_stdbuf_line_buffered_stdout() {
|
||||||
#[cfg(not(target_os = "windows"))]
|
#[cfg(not(target_os = "windows"))]
|
||||||
#[test]
|
#[test]
|
||||||
fn test_stdbuf_no_buffer_option_fails() {
|
fn test_stdbuf_no_buffer_option_fails() {
|
||||||
new_ucmd!()
|
new_ucmd!().args(&["head"]).fails().stderr_is(
|
||||||
.args(&["head"])
|
|
||||||
.pipe_in("The quick brown fox jumps over the lazy dog.")
|
|
||||||
.fails()
|
|
||||||
.stderr_is(
|
|
||||||
"error: The following required arguments were not provided:\n \
|
"error: The following required arguments were not provided:\n \
|
||||||
--error <MODE>\n \
|
--error <MODE>\n \
|
||||||
--input <MODE>\n \
|
--input <MODE>\n \
|
||||||
|
@ -55,7 +51,6 @@ fn test_stdbuf_trailing_var_arg() {
|
||||||
fn test_stdbuf_line_buffering_stdin_fails() {
|
fn test_stdbuf_line_buffering_stdin_fails() {
|
||||||
new_ucmd!()
|
new_ucmd!()
|
||||||
.args(&["-i", "L", "head"])
|
.args(&["-i", "L", "head"])
|
||||||
.pipe_in("The quick brown fox jumps over the lazy dog.")
|
|
||||||
.fails()
|
.fails()
|
||||||
.stderr_is("stdbuf: error: line buffering stdin is meaningless\nTry 'stdbuf --help' for more information.");
|
.stderr_is("stdbuf: error: line buffering stdin is meaningless\nTry 'stdbuf --help' for more information.");
|
||||||
}
|
}
|
||||||
|
@ -65,7 +60,6 @@ fn test_stdbuf_line_buffering_stdin_fails() {
|
||||||
fn test_stdbuf_invalid_mode_fails() {
|
fn test_stdbuf_invalid_mode_fails() {
|
||||||
new_ucmd!()
|
new_ucmd!()
|
||||||
.args(&["-i", "1024R", "head"])
|
.args(&["-i", "1024R", "head"])
|
||||||
.pipe_in("The quick brown fox jumps over the lazy dog.")
|
|
||||||
.fails()
|
.fails()
|
||||||
.stderr_is("stdbuf: error: invalid mode 1024R\nTry 'stdbuf --help' for more information.");
|
.stderr_is("stdbuf: error: invalid mode 1024R\nTry 'stdbuf --help' for more information.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue