File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,8 +125,7 @@ fn test_check_md5_ignore_missing() {
125125 . arg ( "--ignore-missing" )
126126 . arg ( at. subdir . join ( "testf.sha1" ) )
127127 . succeeds ( )
128- . stdout_is ( "testf: OK\n " )
129- . stderr_is ( "" ) ;
128+ . stdout_only ( "testf: OK\n " ) ;
130129
131130 scene
132131 . ccmd ( "md5sum" )
@@ -164,8 +163,7 @@ fn test_check_md5sum() {
164163 . arg ( "-c" )
165164 . arg ( "check.md5sum" )
166165 . succeeds ( )
167- . stdout_is ( "a: OK\n ' b': OK\n '*c': OK\n dd: OK\n ' ': OK\n " )
168- . stderr_is ( "" ) ;
166+ . stdout_only ( "a: OK\n ' b': OK\n '*c': OK\n dd: OK\n ' ': OK\n " ) ;
169167 }
170168 #[ cfg( windows) ]
171169 {
@@ -184,8 +182,7 @@ fn test_check_md5sum() {
184182 . arg ( "-c" )
185183 . arg ( "check.md5sum" )
186184 . succeeds ( )
187- . stdout_is ( "a: OK\n ' b': OK\n dd: OK\n " )
188- . stderr_is ( "" ) ;
185+ . stdout_only ( "a: OK\n ' b': OK\n dd: OK\n " ) ;
189186 }
190187}
191188
@@ -237,8 +234,7 @@ fn test_check_md5sum_reverse_bsd() {
237234 . arg ( "-c" )
238235 . arg ( "check.md5sum" )
239236 . succeeds ( )
240- . stdout_is ( "a: OK\n ' b': OK\n '*c': OK\n dd: OK\n ' ': OK\n " )
241- . stderr_is ( "" ) ;
237+ . stdout_only ( "a: OK\n ' b': OK\n '*c': OK\n dd: OK\n ' ': OK\n " ) ;
242238 }
243239 #[ cfg( windows) ]
244240 {
@@ -257,8 +253,7 @@ fn test_check_md5sum_reverse_bsd() {
257253 . arg ( "-c" )
258254 . arg ( "check.md5sum" )
259255 . succeeds ( )
260- . stdout_is ( "a: OK\n ' b': OK\n dd: OK\n " )
261- . stderr_is ( "" ) ;
256+ . stdout_only ( "a: OK\n ' b': OK\n dd: OK\n " ) ;
262257 }
263258}
264259
@@ -463,8 +458,7 @@ fn test_check_status_code() {
463458 . arg ( "--status" )
464459 . arg ( at. subdir . join ( "in.md5" ) )
465460 . fails ( )
466- . stderr_is ( "" )
467- . stdout_is ( "" ) ;
461+ . no_output ( ) ;
468462}
469463
470464#[ test]
You can’t perform that action at this time.
0 commit comments