Skip to content
This repository was archived by the owner on Aug 12, 2021. It is now read-only.

redox: Use isatty for stdout_isatty #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libtest/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["The Rust Project Developers"]
name = "libtest"
version = "0.0.1"
version = "0.0.2"
edition = "2018"
description = "Rust's built in unit-test and micro-benchmarking framework"
license = "MIT/Apache-2.0"
Expand All @@ -17,4 +17,4 @@ crate-type = ["dylib", "rlib"]

[dependencies]
getopts = "0.2"
term = "0.5"
term = "0.5"
5 changes: 2 additions & 3 deletions libtest/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1031,15 +1031,14 @@ fn use_color(opts: &TestOpts) -> bool {

#[cfg(any(
target_os = "cloudabi",
target_os = "redox",
all(target_arch = "wasm32", not(target_os = "emscripten")),
all(target_vendor = "fortanix", target_env = "sgx")
))]
fn stdout_isatty() -> bool {
// FIXME: Implement isatty on Redox and SGX
// FIXME: Implement isatty on SGX
false
}
#[cfg(any(unix, target_os = "fuchsia"))]
#[cfg(any(unix, target_os = "fuchsia", target_os = "redox"))]
fn stdout_isatty() -> bool {
unsafe { libc::isatty(libc::STDOUT_FILENO) != 0 }
}
Expand Down