auto merge of #14571 : bnoordhuis/rust/libtest-check-isatty, r=alexcrichton

Fixes #14570.
This commit is contained in:
bors 2014-06-01 00:56:42 -07:00
commit 064dbb9200

View File

@ -868,7 +868,9 @@ fn should_sort_failures_before_printing_them() {
assert!(apos < bpos);
}
fn use_color() -> bool { return get_concurrency() == 1; }
fn use_color() -> bool {
get_concurrency() == 1 && io::stdout().get_ref().isatty()
}
#[deriving(Clone)]
enum TestEvent {