From abced5a6b5b0d2f1bcdb0311f8c99a701b7f0c49 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 2 Jan 2018 14:22:37 +0100 Subject: Provide a copy of stdout_isatty() on CloudABI. CloudABI doesn't make any distinction between TTYs and ordinary pipes. While there, remove the redundant implementation used by Redox. It can use the same stub function. --- src/libtest/lib.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 839f697b39c..2daadfc0265 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -977,12 +977,9 @@ fn use_color(opts: &TestOpts) -> bool { } } -#[cfg(target_os = "redox")] -fn stdout_isatty() -> bool { - // FIXME: Implement isatty on Redox - false -} -#[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))] +#[cfg(any(target_os = "cloudabi", + target_os = "redox", + all(target_arch = "wasm32", not(target_os = "emscripten"))))] fn stdout_isatty() -> bool { false } -- cgit 1.4.1-3-g733a5