Skip to content

Commit abced5a

Browse files
committed
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.
1 parent 04ce26a commit abced5a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/libtest/lib.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -977,12 +977,9 @@ fn use_color(opts: &TestOpts) -> bool {
977977
}
978978
}
979979

980-
#[cfg(target_os = "redox")]
981-
fn stdout_isatty() -> bool {
982-
// FIXME: Implement isatty on Redox
983-
false
984-
}
985-
#[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))]
980+
#[cfg(any(target_os = "cloudabi",
981+
target_os = "redox",
982+
all(target_arch = "wasm32", not(target_os = "emscripten"))))]
986983
fn stdout_isatty() -> bool {
987984
false
988985
}

0 commit comments

Comments
 (0)