about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEd Schouten <ed@nuxi.nl>2018-01-02 14:22:37 +0100
committerEd Schouten <ed@nuxi.nl>2018-01-02 14:22:37 +0100
commitabced5a6b5b0d2f1bcdb0311f8c99a701b7f0c49 (patch)
treeedf7ed7686c513fcc2d6e95330cac3f5c209e6e3
parent04ce26a6f6a91a63255d37e5550e5ff4a9ed28ff (diff)
downloadrust-abced5a6b5b0d2f1bcdb0311f8c99a701b7f0c49.tar.gz
rust-abced5a6b5b0d2f1bcdb0311f8c99a701b7f0c49.zip
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.
-rw-r--r--src/libtest/lib.rs9
1 files changed, 3 insertions, 6 deletions
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
 }