mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
true,false: use no_output() in tests
This commit is contained in:
@@ -8,7 +8,7 @@ use std::fs::OpenOptions;
|
||||
|
||||
#[test]
|
||||
fn test_exit_code() {
|
||||
new_ucmd!().fails();
|
||||
new_ucmd!().fails().no_output();
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -30,7 +30,7 @@ fn test_help() {
|
||||
#[test]
|
||||
fn test_short_options() {
|
||||
for option in ["-h", "-V"] {
|
||||
new_ucmd!().arg(option).fails().stdout_is("");
|
||||
new_ucmd!().arg(option).fails().no_output();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ fn test_conflict() {
|
||||
new_ucmd!()
|
||||
.args(&["--help", "--version"])
|
||||
.fails()
|
||||
.stdout_is("");
|
||||
.no_output();
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -8,7 +8,7 @@ use std::fs::OpenOptions;
|
||||
|
||||
#[test]
|
||||
fn test_exit_code() {
|
||||
new_ucmd!().succeeds();
|
||||
new_ucmd!().succeeds().no_output();
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -30,7 +30,7 @@ fn test_help() {
|
||||
#[test]
|
||||
fn test_short_options() {
|
||||
for option in ["-h", "-V"] {
|
||||
new_ucmd!().arg(option).succeeds().stdout_is("");
|
||||
new_ucmd!().arg(option).succeeds().no_output();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ fn test_conflict() {
|
||||
new_ucmd!()
|
||||
.args(&["--help", "--version"])
|
||||
.succeeds()
|
||||
.stdout_is("");
|
||||
.no_output();
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user