parent
bcf3464827
commit
87ecd4f75b
1 changed files with 3 additions and 1 deletions
|
@ -868,7 +868,9 @@ fn should_sort_failures_before_printing_them() {
|
||||||
assert!(apos < bpos);
|
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)]
|
#[deriving(Clone)]
|
||||||
enum TestEvent {
|
enum TestEvent {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue