From a0f7d83586a87b0a0e569fae4789692462cd1b4a Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 17 Jun 2019 16:39:12 -0600 Subject: [PATCH 1/2] Use isatty for stdout_isatty --- libtest/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libtest/lib.rs b/libtest/lib.rs index 1617baf..9e26a04 100644 --- a/libtest/lib.rs +++ b/libtest/lib.rs @@ -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 } } From d24811d69df568eed581da868d53fa0416df1f3c Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 17 Jun 2019 16:44:36 -0600 Subject: [PATCH 2/2] Bump version to 0.0.2 --- libtest/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtest/Cargo.toml b/libtest/Cargo.toml index c1ce6b4..8e9b2b1 100644 --- a/libtest/Cargo.toml +++ b/libtest/Cargo.toml @@ -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" @@ -17,4 +17,4 @@ crate-type = ["dylib", "rlib"] [dependencies] getopts = "0.2" -term = "0.5" \ No newline at end of file +term = "0.5"