File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -510,9 +510,9 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
510510 }
511511 }
512512
513- stdout. flush ( ) . map_err ( |e| {
514- USimpleError :: new ( 1 , translate ! ( "date-error-write" , "error" => e ) )
515- } ) ?;
513+ stdout
514+ . flush ( )
515+ . map_err ( |e| USimpleError :: new ( 1 , translate ! ( "date-error-write" , "error" => e ) ) ) ?;
516516 Ok ( ( ) )
517517}
518518
Original file line number Diff line number Diff line change @@ -729,7 +729,7 @@ fn test_read_error() {
729729}
730730
731731#[ test]
732- #[ cfg( unix ) ]
732+ #[ cfg( target_os = "linux" ) ]
733733fn test_comm_write_error_dev_full ( ) {
734734 use std:: fs:: OpenOptions ;
735735 let scene = TestScenario :: new ( util_name ! ( ) ) ;
Original file line number Diff line number Diff line change @@ -2068,7 +2068,7 @@ fn test_percent_percent_not_replaced() {
20682068}
20692069
20702070#[ test]
2071- #[ cfg( unix ) ]
2071+ #[ cfg( target_os = "linux" ) ]
20722072fn test_date_write_error_dev_full ( ) {
20732073 use std:: fs:: OpenOptions ;
20742074 let dev_full = OpenOptions :: new ( ) . write ( true ) . open ( "/dev/full" ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments