From 3af77559096ef2df19cdc83e96674b10b27911b6 Mon Sep 17 00:00:00 2001 From: Corey Richardson Date: Tue, 8 Apr 2014 12:18:16 -0400 Subject: [PATCH] test: update for term fallout --- src/libtest/lib.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 3273e53ed8a..f2ecd214887 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -447,7 +447,7 @@ pub enum TestResult { } enum OutputLocation { - Pretty(term::Terminal), + Pretty(~term::Terminal<~Writer:Send>:Send), Raw(T), } @@ -472,10 +472,11 @@ impl ConsoleTestState { Some(ref path) => Some(try!(File::create(path))), None => None }; - let out = match term::Terminal::new(io::stdio::stdout_raw()) { - Err(_) => Raw(io::stdio::stdout_raw()), - Ok(t) => Pretty(t) + let out = match term::stdout() { + None => Raw(io::stdio::stdout_raw()), + Some(t) => Pretty(t) }; + Ok(ConsoleTestState { out: out, log_out: log_out,