File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,12 @@ use uutests::util::TestScenario;
10
10
use uutests:: util_name;
11
11
12
12
#[ test]
13
- fn test_invalid_arg ( ) {
14
- new_ucmd ! ( ) . arg ( "--definitely-invalid" ) . fails_with_code ( 1 ) ;
13
+ fn test_mknod_invalid_arg ( ) {
14
+ new_ucmd ! ( )
15
+ . arg ( "--foo" )
16
+ . fails_with_code ( 1 )
17
+ . no_stdout ( )
18
+ . stderr_contains ( "unexpected argument '--foo' found" ) ;
15
19
}
16
20
17
21
#[ test]
@@ -103,15 +107,6 @@ fn test_mknod_character_device_requires_major_and_minor() {
103
107
. stderr_contains ( "invalid value 'c'" ) ;
104
108
}
105
109
106
- #[ test]
107
- fn test_mknod_invalid_arg ( ) {
108
- new_ucmd ! ( )
109
- . arg ( "--foo" )
110
- . fails ( )
111
- . no_stdout ( )
112
- . stderr_contains ( "unexpected argument '--foo' found" ) ;
113
- }
114
-
115
110
#[ test]
116
111
fn test_mknod_invalid_mode ( ) {
117
112
new_ucmd ! ( )
You can’t perform that action at this time.
0 commit comments