Skip to content

Commit 41ce24a

Browse files
committed
---
yaml --- r: 151764 b: refs/heads/try2 c: 3af7755 h: refs/heads/master v: v3
1 parent 46b5327 commit 41ce24a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 7bf1de528396f0f2622ca391da0b03d79a27ee52
8+
refs/heads/try2: 3af77559096ef2df19cdc83e96674b10b27911b6
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libtest/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ pub enum TestResult {
447447
}
448448

449449
enum OutputLocation<T> {
450-
Pretty(term::Terminal<T>),
450+
Pretty(~term::Terminal<~Writer:Send>:Send),
451451
Raw(T),
452452
}
453453

@@ -472,10 +472,11 @@ impl<T: Writer> ConsoleTestState<T> {
472472
Some(ref path) => Some(try!(File::create(path))),
473473
None => None
474474
};
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)
478478
};
479+
479480
Ok(ConsoleTestState {
480481
out: out,
481482
log_out: log_out,

0 commit comments

Comments
 (0)