File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
branches/try2/src/libtest Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: 7bf1de528396f0f2622ca391da0b03d79a27ee52
8
+ refs/heads/try2: 3af77559096ef2df19cdc83e96674b10b27911b6
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -447,7 +447,7 @@ pub enum TestResult {
447
447
}
448
448
449
449
enum OutputLocation < T > {
450
- Pretty ( term:: Terminal < T > ) ,
450
+ Pretty ( ~ term:: Terminal < ~ Writer : Send > : Send ) ,
451
451
Raw ( T ) ,
452
452
}
453
453
@@ -472,10 +472,11 @@ impl<T: Writer> ConsoleTestState<T> {
472
472
Some ( ref path) => Some ( try!( File :: create ( path) ) ) ,
473
473
None => None
474
474
} ;
475
- let out = match term:: Terminal :: new ( io :: stdio :: stdout_raw ( ) ) {
476
- Err ( _ ) => Raw ( io:: stdio:: stdout_raw ( ) ) ,
477
- Ok ( t) => Pretty ( t)
475
+ let out = match term:: stdout ( ) {
476
+ None => Raw ( io:: stdio:: stdout_raw ( ) ) ,
477
+ Some ( t) => Pretty ( t)
478
478
} ;
479
+
479
480
Ok ( ConsoleTestState {
480
481
out : out,
481
482
log_out : log_out,
You can’t perform that action at this time.
0 commit comments