File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -506,16 +506,25 @@ impl<T: Writer> ConsoleTestState<T> {
506
506
if self . use_color {
507
507
try!( term. reset ( ) ) ;
508
508
}
509
- Ok ( ( ) )
509
+ term. flush ( )
510
+ }
511
+ Raw ( ref mut stdout) => {
512
+ try!( stdout. write_all ( word. as_bytes ( ) ) ) ;
513
+ stdout. flush ( )
510
514
}
511
- Raw ( ref mut stdout) => stdout. write_all ( word. as_bytes ( ) )
512
515
}
513
516
}
514
517
515
518
pub fn write_plain ( & mut self , s : & str ) -> old_io:: IoResult < ( ) > {
516
519
match self . out {
517
- Pretty ( ref mut term) => term. write_all ( s. as_bytes ( ) ) ,
518
- Raw ( ref mut stdout) => stdout. write_all ( s. as_bytes ( ) )
520
+ Pretty ( ref mut term) => {
521
+ try!( term. write_all ( s. as_bytes ( ) ) ) ;
522
+ term. flush ( )
523
+ } ,
524
+ Raw ( ref mut stdout) => {
525
+ try!( stdout. write_all ( s. as_bytes ( ) ) ) ;
526
+ stdout. flush ( )
527
+ } ,
519
528
}
520
529
}
521
530
You can’t perform that action at this time.
0 commit comments