File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,6 @@ pub fn uu_app() -> Command {
117117 . arg (
118118 Arg :: new ( "program-name" )
119119 . help ( "Program name." )
120- . required ( true )
121120 . index ( 1 )
122121 . action ( ArgAction :: Append ) ,
123122 )
Original file line number Diff line number Diff line change 55
66use crate :: common:: util:: TestScenario ;
77
8+ #[ test]
9+ fn test_no_args ( ) {
10+ new_ucmd ! ( ) . fails ( ) . code_is ( 1 ) . no_output ( ) ;
11+ }
12+
813#[ test]
914fn test_invalid_arg ( ) {
1015 new_ucmd ! ( ) . arg ( "--definitely-invalid" ) . fails ( ) . code_is ( 1 ) ;
@@ -23,12 +28,6 @@ fn test_find_kthreadd() {
2328 new_ucmd ! ( ) . arg ( "kthreadd" ) . succeeds ( ) ;
2429}
2530
26- #[ test]
27- #[ cfg( target_os = "linux" ) ]
28- fn test_no_program ( ) {
29- new_ucmd ! ( ) . fails ( ) . code_is ( 1 ) ;
30- }
31-
3231#[ test]
3332#[ cfg( target_os = "linux" ) ]
3433fn test_no_pid_found ( ) {
You can’t perform that action at this time.
0 commit comments