1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #7828 from cakebaker/mknod_remove_duplicate_test

mknod: remove duplicate test
This commit is contained in:
Dorian Péron 2025-04-24 05:08:07 +02:00 committed by GitHub
commit 151b196f50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,8 +10,12 @@ use uutests::util::TestScenario;
use uutests::util_name; use uutests::util_name;
#[test] #[test]
fn test_invalid_arg() { fn test_mknod_invalid_arg() {
new_ucmd!().arg("--definitely-invalid").fails_with_code(1); new_ucmd!()
.arg("--foo")
.fails_with_code(1)
.no_stdout()
.stderr_contains("unexpected argument '--foo' found");
} }
#[test] #[test]
@ -103,15 +107,6 @@ fn test_mknod_character_device_requires_major_and_minor() {
.stderr_contains("invalid value 'c'"); .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] #[test]
fn test_mknod_invalid_mode() { fn test_mknod_invalid_mode() {
new_ucmd!() new_ucmd!()