mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Merge pull request #7828 from cakebaker/mknod_remove_duplicate_test
mknod: remove duplicate test
This commit is contained in:
commit
151b196f50
1 changed files with 6 additions and 11 deletions
|
@ -10,8 +10,12 @@ use uutests::util::TestScenario;
|
|||
use uutests::util_name;
|
||||
|
||||
#[test]
|
||||
fn test_invalid_arg() {
|
||||
new_ucmd!().arg("--definitely-invalid").fails_with_code(1);
|
||||
fn test_mknod_invalid_arg() {
|
||||
new_ucmd!()
|
||||
.arg("--foo")
|
||||
.fails_with_code(1)
|
||||
.no_stdout()
|
||||
.stderr_contains("unexpected argument '--foo' found");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -103,15 +107,6 @@ fn test_mknod_character_device_requires_major_and_minor() {
|
|||
.stderr_contains("invalid value 'c'");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_mknod_invalid_arg() {
|
||||
new_ucmd!()
|
||||
.arg("--foo")
|
||||
.fails()
|
||||
.no_stdout()
|
||||
.stderr_contains("unexpected argument '--foo' found");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_mknod_invalid_mode() {
|
||||
new_ucmd!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue