From 3f880912e90825a88b0a25e235dd43b24da1055b Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 2 Jan 2018 14:11:41 +0100 Subject: [PATCH 1/5] Add 'ignore-cloudabi' to tests that don't and won't build on CloudABI. It looks like many of these tests are already disabled on emscripten, which also doesn't seem to support environment variables and subprocess spawning. Just add a similar tag for CloudABI. While there, sort some of the lists of operating systems alphabetically. --- src/test/codegen/dllimports/main.rs | 7 ++++--- src/test/codegen/panic-abort-windows.rs | 5 +++-- src/test/compile-fail/E0277.rs | 2 ++ .../compile-fail/cdylib-deps-must-be-static.rs | 1 + src/test/compile-fail/issue-13352.rs | 2 ++ src/test/compile-fail/issue-37665.rs | 1 + .../panic-runtime/abort-link-to-unwind-dylib.rs | 1 + src/test/parse-fail/mod_file_not_exist_windows.rs | 7 ++++--- src/test/run-fail/mir_dynamic_drops_1.rs | 3 ++- src/test/run-fail/mir_dynamic_drops_2.rs | 2 +- src/test/run-fail/mir_dynamic_drops_3.rs | 2 +- src/test/run-fail/mir_trans_no_landing_pads.rs | 2 ++ .../mir_trans_no_landing_pads_diverging.rs | 2 ++ src/test/run-fail/tls-exit-status.rs | 1 + src/test/run-pass-valgrind/exit-flushes.rs | 3 ++- src/test/run-pass/abort-on-c-abi.rs | 1 + src/test/run-pass/atomic-print.rs | 1 + src/test/run-pass/backtrace-debuginfo.rs | 1 + src/test/run-pass/backtrace.rs | 1 + src/test/run-pass/cfg-family.rs | 1 + src/test/run-pass/cfg-target-family.rs | 1 + src/test/run-pass/cleanup-shortcircuit.rs | 1 + src/test/run-pass/command-before-exec.rs | 1 + src/test/run-pass/command-exec.rs | 1 + src/test/run-pass/core-run-destroy.rs | 1 + src/test/run-pass/env-args-reverse-iterator.rs | 1 + src/test/run-pass/env-funky-keys.rs | 1 + src/test/run-pass/env-home-dir.rs | 1 + src/test/run-pass/env-vars.rs | 1 + src/test/run-pass/exec-env.rs | 1 + src/test/run-pass/fds-are-cloexec.rs | 1 + src/test/run-pass/intrinsic-alignment.rs | 11 ++++++----- src/test/run-pass/issue-10626.rs | 1 + src/test/run-pass/issue-12133-3.rs | 3 ++- src/test/run-pass/issue-13304.rs | 1 + src/test/run-pass/issue-14456.rs | 1 + src/test/run-pass/issue-14940.rs | 1 + src/test/run-pass/issue-16272.rs | 1 + src/test/run-pass/issue-17121.rs | 1 + src/test/run-pass/issue-20091.rs | 1 + src/test/run-pass/issue-20644.rs | 1 + src/test/run-pass/issue-20797.rs | 2 ++ src/test/run-pass/issue-2214.rs | 2 +- src/test/run-pass/issue-22577.rs | 1 + src/test/run-pass/issue-23036.rs | 2 ++ src/test/run-pass/issue-23649-2.rs | 2 ++ src/test/run-pass/issue-24313.rs | 1 + src/test/run-pass/issue-27859.rs | 1 + src/test/run-pass/issue-30490.rs | 1 + src/test/run-pass/issue-33770.rs | 1 + src/test/run-pass/issue-4541.rs | 2 ++ src/test/run-pass/issue-4542.rs | 1 + src/test/run-pass/issue-45731.rs | 4 ++-- src/test/run-pass/multi-panic.rs | 1 + src/test/run-pass/no-stdio.rs | 3 ++- src/test/run-pass/out-of-stack.rs | 1 + .../abort-link-to-unwinding-crates.rs | 1 + src/test/run-pass/panic-runtime/abort.rs | 1 + src/test/run-pass/panic-runtime/lto-abort.rs | 1 + src/test/run-pass/panic-runtime/lto-unwind.rs | 1 + src/test/run-pass/paths-containing-nul.rs | 1 + src/test/run-pass/print-stdout-eprint-stderr.rs | 1 + src/test/run-pass/process-envs.rs | 1 + src/test/run-pass/process-exit.rs | 1 + src/test/run-pass/process-remove-from-env.rs | 1 + src/test/run-pass/process-sigpipe.rs | 1 + .../run-pass/process-spawn-with-unicode-params.rs | 1 + .../run-pass/process-status-inherits-stdin.rs | 1 + src/test/run-pass/rec-align-u64.rs | 11 ++++++----- src/test/run-pass/rfc-1014.rs | 1 + src/test/run-pass/running-with-no-runtime.rs | 1 + src/test/run-pass/segfault-no-out-of-stack.rs | 1 + .../run-pass/signal-alternate-stack-cleanup.rs | 3 ++- src/test/run-pass/signal-exit-status.rs | 3 ++- src/test/run-pass/sigpipe-should-be-ignored.rs | 1 + src/test/run-pass/sse2.rs | 2 ++ src/test/run-pass/stack-probes-lto.rs | 1 + src/test/run-pass/stack-probes.rs | 1 + src/test/run-pass/stdio-is-blocking.rs | 1 + src/test/run-pass/sync-send-in-std.rs | 1 + src/test/run-pass/tcp-stress.rs | 3 ++- src/test/run-pass/try-operator.rs | 2 ++ src/test/run-pass/try-wait.rs | 1 + src/test/run-pass/wait-forked-but-failed-child.rs | 1 + src/test/run-pass/weird-exit-code.rs | 12 ++++++------ src/test/run-pass/x86stdcall.rs | 15 ++++++++------- src/test/ui/issue-46576.rs | 2 ++ src/test/ui/lint/use_suggestion_json.rs | 1 + src/test/ui/mismatched_types/recovered-block.rs | 2 ++ src/test/ui/resolve/token-error-correct-3.rs | 2 ++ src/test/ui/resolve/use_suggestion_placement.rs | 2 ++ src/test/ui/span/issue-33884.rs | 2 ++ src/test/ui/suggestions/try-operator-on-main.rs | 2 ++ 93 files changed, 147 insertions(+), 43 deletions(-) diff --git a/src/test/codegen/dllimports/main.rs b/src/test/codegen/dllimports/main.rs index 64f516aa272e..d0fafbdd0447 100644 --- a/src/test/codegen/dllimports/main.rs +++ b/src/test/codegen/dllimports/main.rs @@ -9,19 +9,20 @@ // except according to those terms. // This test is for *-windows-msvc only. -// ignore-gnu // ignore-android // ignore-bitrig -// ignore-macos +// ignore-cloudabi // ignore-dragonfly +// ignore-emscripten // ignore-freebsd +// ignore-gnu // ignore-haiku // ignore-ios // ignore-linux +// ignore-macos // ignore-netbsd // ignore-openbsd // ignore-solaris -// ignore-emscripten // aux-build:dummy.rs // aux-build:wrapper.rs diff --git a/src/test/codegen/panic-abort-windows.rs b/src/test/codegen/panic-abort-windows.rs index 15688bdc2a11..f1affcc12487 100644 --- a/src/test/codegen/panic-abort-windows.rs +++ b/src/test/codegen/panic-abort-windows.rs @@ -13,16 +13,17 @@ // This test is for *-windows-msvc only. // ignore-android // ignore-bitrig -// ignore-macos +// ignore-cloudabi // ignore-dragonfly +// ignore-emscripten // ignore-freebsd // ignore-haiku // ignore-ios // ignore-linux +// ignore-macos // ignore-netbsd // ignore-openbsd // ignore-solaris -// ignore-emscripten // compile-flags: -C no-prepopulate-passes -C panic=abort -O diff --git a/src/test/compile-fail/E0277.rs b/src/test/compile-fail/E0277.rs index 784f7465d439..b29e43570150 100644 --- a/src/test/compile-fail/E0277.rs +++ b/src/test/compile-fail/E0277.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no std::path + use std::path::Path; trait Foo { diff --git a/src/test/compile-fail/cdylib-deps-must-be-static.rs b/src/test/compile-fail/cdylib-deps-must-be-static.rs index bf7189c21fbf..0a06e01cab01 100644 --- a/src/test/compile-fail/cdylib-deps-must-be-static.rs +++ b/src/test/compile-fail/cdylib-deps-must-be-static.rs @@ -11,6 +11,7 @@ // error-pattern: crate `cdylib_dep` required to be available in rlib format, but was not found // aux-build:cdylib-dep.rs // ignore-musl +// ignore-cloudabi // ignore-emscripten #![crate_type = "cdylib"] diff --git a/src/test/compile-fail/issue-13352.rs b/src/test/compile-fail/issue-13352.rs index 0c446f5fe470..e9d76c758cdb 100644 --- a/src/test/compile-fail/issue-13352.rs +++ b/src/test/compile-fail/issue-13352.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no std::process + fn foo(_: Box) {} fn main() { diff --git a/src/test/compile-fail/issue-37665.rs b/src/test/compile-fail/issue-37665.rs index f86f570d25dc..98e62965235e 100644 --- a/src/test/compile-fail/issue-37665.rs +++ b/src/test/compile-fail/issue-37665.rs @@ -9,6 +9,7 @@ // except according to those terms. // compile-flags: -Z unstable-options --unpretty=mir +// ignore-cloudabi no std::path use std::path::MAIN_SEPARATOR; diff --git a/src/test/compile-fail/panic-runtime/abort-link-to-unwind-dylib.rs b/src/test/compile-fail/panic-runtime/abort-link-to-unwind-dylib.rs index 1fd60b15a72a..f392ccd76764 100644 --- a/src/test/compile-fail/panic-runtime/abort-link-to-unwind-dylib.rs +++ b/src/test/compile-fail/panic-runtime/abort-link-to-unwind-dylib.rs @@ -10,6 +10,7 @@ // compile-flags:-C panic=abort -C prefer-dynamic // ignore-musl - no dylibs here +// ignore-cloudabi // ignore-emscripten // error-pattern:`panic_unwind` is not compiled with this crate's panic strategy diff --git a/src/test/parse-fail/mod_file_not_exist_windows.rs b/src/test/parse-fail/mod_file_not_exist_windows.rs index c58603b43989..5cf821749e94 100644 --- a/src/test/parse-fail/mod_file_not_exist_windows.rs +++ b/src/test/parse-fail/mod_file_not_exist_windows.rs @@ -8,19 +8,20 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// ignore-gnu // ignore-android // ignore-bitrig -// ignore-macos +// ignore-cloudabi // ignore-dragonfly +// ignore-emscripten // ignore-freebsd +// ignore-gnu // ignore-haiku // ignore-ios // ignore-linux +// ignore-macos // ignore-netbsd // ignore-openbsd // ignore-solaris -// ignore-emscripten // compile-flags: -Z parse-only diff --git a/src/test/run-fail/mir_dynamic_drops_1.rs b/src/test/run-fail/mir_dynamic_drops_1.rs index 69f934272b75..856fc50a0f8e 100644 --- a/src/test/run-fail/mir_dynamic_drops_1.rs +++ b/src/test/run-fail/mir_dynamic_drops_1.rs @@ -7,9 +7,10 @@ // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. + // error-pattern:drop 1 // error-pattern:drop 2 - +// ignore-cloudabi no std::process /// Structure which will not allow to be dropped twice. struct Droppable<'a>(&'a mut bool, u32); diff --git a/src/test/run-fail/mir_dynamic_drops_2.rs b/src/test/run-fail/mir_dynamic_drops_2.rs index d2fe50401ab8..964562322bd7 100644 --- a/src/test/run-fail/mir_dynamic_drops_2.rs +++ b/src/test/run-fail/mir_dynamic_drops_2.rs @@ -9,7 +9,7 @@ // except according to those terms. // error-pattern:drop 1 - +// ignore-cloudabi no std::process /// Structure which will not allow to be dropped twice. struct Droppable<'a>(&'a mut bool, u32); diff --git a/src/test/run-fail/mir_dynamic_drops_3.rs b/src/test/run-fail/mir_dynamic_drops_3.rs index ecc35ee9b240..4c070314555c 100644 --- a/src/test/run-fail/mir_dynamic_drops_3.rs +++ b/src/test/run-fail/mir_dynamic_drops_3.rs @@ -12,7 +12,7 @@ // error-pattern:drop 3 // error-pattern:drop 2 // error-pattern:drop 1 - +// ignore-cloudabi no std::process /// Structure which will not allow to be dropped twice. struct Droppable<'a>(&'a mut bool, u32); diff --git a/src/test/run-fail/mir_trans_no_landing_pads.rs b/src/test/run-fail/mir_trans_no_landing_pads.rs index bafb78fc213e..aded2739b10d 100644 --- a/src/test/run-fail/mir_trans_no_landing_pads.rs +++ b/src/test/run-fail/mir_trans_no_landing_pads.rs @@ -10,6 +10,8 @@ // compile-flags: -Z no-landing-pads -C codegen-units=1 // error-pattern:converging_fn called +// ignore-cloudabi no std::process + use std::io::{self, Write}; struct Droppable; diff --git a/src/test/run-fail/mir_trans_no_landing_pads_diverging.rs b/src/test/run-fail/mir_trans_no_landing_pads_diverging.rs index 998ee7470bbe..d3a8613bbc4b 100644 --- a/src/test/run-fail/mir_trans_no_landing_pads_diverging.rs +++ b/src/test/run-fail/mir_trans_no_landing_pads_diverging.rs @@ -10,6 +10,8 @@ // compile-flags: -Z no-landing-pads -C codegen-units=1 // error-pattern:diverging_fn called +// ignore-cloudabi no std::process + use std::io::{self, Write}; struct Droppable; diff --git a/src/test/run-fail/tls-exit-status.rs b/src/test/run-fail/tls-exit-status.rs index be619e3a82cc..d9b81c5d4b69 100644 --- a/src/test/run-fail/tls-exit-status.rs +++ b/src/test/run-fail/tls-exit-status.rs @@ -10,6 +10,7 @@ // error-pattern:nonzero // exec-env:RUST_NEWRT=1 +// ignore-cloudabi no std::env use std::env; diff --git a/src/test/run-pass-valgrind/exit-flushes.rs b/src/test/run-pass-valgrind/exit-flushes.rs index b72d2659967c..bb0d5644d389 100644 --- a/src/test/run-pass-valgrind/exit-flushes.rs +++ b/src/test/run-pass-valgrind/exit-flushes.rs @@ -9,9 +9,10 @@ // except according to those terms. // no-prefer-dynamic +// ignore-cloudabi +// ignore-emscripten // ignore-macos this needs valgrind 3.11 or higher; see // https://github.com/rust-lang/rust/pull/30365#issuecomment-165763679 -// ignore-emscripten use std::env; use std::process::{exit, Command}; diff --git a/src/test/run-pass/abort-on-c-abi.rs b/src/test/run-pass/abort-on-c-abi.rs index 63fd934b0d0f..17661c0b1209 100644 --- a/src/test/run-pass/abort-on-c-abi.rs +++ b/src/test/run-pass/abort-on-c-abi.rs @@ -11,6 +11,7 @@ // Since we mark some ABIs as "nounwind" to LLVM, we must make sure that // we never unwind through them. +// ignore-cloudabi no env and process // ignore-emscripten no processes use std::{env, panic}; diff --git a/src/test/run-pass/atomic-print.rs b/src/test/run-pass/atomic-print.rs index ebc9f8019311..914b89dfb4dc 100644 --- a/src/test/run-pass/atomic-print.rs +++ b/src/test/run-pass/atomic-print.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no process support // ignore-emscripten no threads support use std::{env, fmt, process, sync, thread}; diff --git a/src/test/run-pass/backtrace-debuginfo.rs b/src/test/run-pass/backtrace-debuginfo.rs index f9233026a1e6..2f1c5c0574ad 100644 --- a/src/test/run-pass/backtrace-debuginfo.rs +++ b/src/test/run-pass/backtrace-debuginfo.rs @@ -17,6 +17,7 @@ // compile-flags:-g -Cllvm-args=-enable-tail-merge=0 // ignore-pretty issue #37195 +// ignore-cloudabi spawning processes is not supported // ignore-emscripten spawning processes is not supported use std::env; diff --git a/src/test/run-pass/backtrace.rs b/src/test/run-pass/backtrace.rs index b3a9e8928be3..3e1ae730e4af 100644 --- a/src/test/run-pass/backtrace.rs +++ b/src/test/run-pass/backtrace.rs @@ -9,6 +9,7 @@ // except according to those terms. // ignore-android FIXME #17520 +// ignore-cloudabi spawning processes is not supported // ignore-emscripten spawning processes is not supported // ignore-openbsd no support for libbacktrace without filename // compile-flags:-g diff --git a/src/test/run-pass/cfg-family.rs b/src/test/run-pass/cfg-family.rs index 1797ad1019c3..e45e35b370d9 100644 --- a/src/test/run-pass/cfg-family.rs +++ b/src/test/run-pass/cfg-family.rs @@ -9,6 +9,7 @@ // except according to those terms. // pretty-expanded FIXME #23616 +// ignore-cloudabi no target_family // ignore-wasm32-bare no target_family #[cfg(windows)] diff --git a/src/test/run-pass/cfg-target-family.rs b/src/test/run-pass/cfg-target-family.rs index 0b8574e11747..7c279e43e0e6 100644 --- a/src/test/run-pass/cfg-target-family.rs +++ b/src/test/run-pass/cfg-target-family.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no target_family // ignore-wasm32-bare no target_family // pretty-expanded FIXME #23616 diff --git a/src/test/run-pass/cleanup-shortcircuit.rs b/src/test/run-pass/cleanup-shortcircuit.rs index 6744d7d413d5..2460fa92925e 100644 --- a/src/test/run-pass/cleanup-shortcircuit.rs +++ b/src/test/run-pass/cleanup-shortcircuit.rs @@ -11,6 +11,7 @@ // Test that cleanups for the RHS of shortcircuiting operators work. // pretty-expanded FIXME #23616 +// ignore-cloudabi no std::env support use std::env; diff --git a/src/test/run-pass/command-before-exec.rs b/src/test/run-pass/command-before-exec.rs index 9e782cca218f..9599f65da4ec 100644 --- a/src/test/run-pass/command-before-exec.rs +++ b/src/test/run-pass/command-before-exec.rs @@ -9,6 +9,7 @@ // except according to those terms. // ignore-windows - this is a unix-specific test +// ignore-cloudabi no processes // ignore-emscripten no processes #![feature(process_exec, libc)] diff --git a/src/test/run-pass/command-exec.rs b/src/test/run-pass/command-exec.rs index e378f55dffa1..d6d0c2b36f64 100644 --- a/src/test/run-pass/command-exec.rs +++ b/src/test/run-pass/command-exec.rs @@ -10,6 +10,7 @@ // ignore-windows - this is a unix-specific test // ignore-pretty issue #37199 +// ignore-cloudabi no processes // ignore-emscripten no processes #![feature(process_exec)] diff --git a/src/test/run-pass/core-run-destroy.rs b/src/test/run-pass/core-run-destroy.rs index 863f3cf30e96..13118c48d6e9 100644 --- a/src/test/run-pass/core-run-destroy.rs +++ b/src/test/run-pass/core-run-destroy.rs @@ -9,6 +9,7 @@ // except according to those terms. // compile-flags:--test +// ignore-cloudabi no processes // ignore-emscripten no processes // NB: These tests kill child processes. Valgrind sees these children as leaking diff --git a/src/test/run-pass/env-args-reverse-iterator.rs b/src/test/run-pass/env-args-reverse-iterator.rs index dddf1ae05465..0645c65d0d66 100644 --- a/src/test/run-pass/env-args-reverse-iterator.rs +++ b/src/test/run-pass/env-args-reverse-iterator.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no processes // ignore-emscripten no processes use std::env::args; diff --git a/src/test/run-pass/env-funky-keys.rs b/src/test/run-pass/env-funky-keys.rs index 86ffaf1e24f6..12e1cbe97d83 100644 --- a/src/test/run-pass/env-funky-keys.rs +++ b/src/test/run-pass/env-funky-keys.rs @@ -12,6 +12,7 @@ // ignore-android // ignore-windows +// ignore-cloudabi no execve // ignore-emscripten no execve // no-prefer-dynamic diff --git a/src/test/run-pass/env-home-dir.rs b/src/test/run-pass/env-home-dir.rs index 3693e86ba242..22e440c6ffa5 100644 --- a/src/test/run-pass/env-home-dir.rs +++ b/src/test/run-pass/env-home-dir.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no environment variables present // ignore-emscripten env vars don't work? #![feature(path)] diff --git a/src/test/run-pass/env-vars.rs b/src/test/run-pass/env-vars.rs index af44a6567e40..d7b4c81fc7f2 100644 --- a/src/test/run-pass/env-vars.rs +++ b/src/test/run-pass/env-vars.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no env vars // ignore-wasm32-bare no env vars use std::env::*; diff --git a/src/test/run-pass/exec-env.rs b/src/test/run-pass/exec-env.rs index a96d189afaa8..b2d2e70f83ba 100644 --- a/src/test/run-pass/exec-env.rs +++ b/src/test/run-pass/exec-env.rs @@ -9,6 +9,7 @@ // except according to those terms. // exec-env:TEST_EXEC_ENV=22 +// ignore-cloudabi no env vars // ignore-emscripten FIXME: issue #31622 use std::env; diff --git a/src/test/run-pass/fds-are-cloexec.rs b/src/test/run-pass/fds-are-cloexec.rs index f55876115c09..a5ae0ae9f315 100644 --- a/src/test/run-pass/fds-are-cloexec.rs +++ b/src/test/run-pass/fds-are-cloexec.rs @@ -10,6 +10,7 @@ // ignore-windows // ignore-android +// ignore-cloudabi no processes // ignore-emscripten no processes // ignore-haiku diff --git a/src/test/run-pass/intrinsic-alignment.rs b/src/test/run-pass/intrinsic-alignment.rs index 99edd2550c01..c7aa78e768f4 100644 --- a/src/test/run-pass/intrinsic-alignment.rs +++ b/src/test/run-pass/intrinsic-alignment.rs @@ -19,14 +19,15 @@ mod rusti { } } -#[cfg(any(target_os = "linux", - target_os = "macos", - target_os = "freebsd", +#[cfg(any(target_os = "cloudabi", target_os = "dragonfly", + target_os = "emscripten", + target_os = "freebsd", + target_os = "linux", + target_os = "macos", target_os = "netbsd", target_os = "openbsd", - target_os = "solaris", - target_os = "emscripten"))] + target_os = "solaris"))] mod m { #[main] #[cfg(target_arch = "x86")] diff --git a/src/test/run-pass/issue-10626.rs b/src/test/run-pass/issue-10626.rs index e9d37817ee2e..9262fc342f75 100644 --- a/src/test/run-pass/issue-10626.rs +++ b/src/test/run-pass/issue-10626.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no processes // ignore-emscripten no processes // Make sure that if a process doesn't have its stdio/stderr descriptors set up diff --git a/src/test/run-pass/issue-12133-3.rs b/src/test/run-pass/issue-12133-3.rs index 8f455c2fe4e1..2b36c94d2e29 100644 --- a/src/test/run-pass/issue-12133-3.rs +++ b/src/test/run-pass/issue-12133-3.rs @@ -11,8 +11,9 @@ // aux-build:issue-12133-rlib.rs // aux-build:issue-12133-dylib.rs // aux-build:issue-12133-dylib2.rs -// ignore-musl +// ignore-cloudabi no dylib support // ignore-emscripten no dylib support +// ignore-musl // pretty-expanded FIXME #23616 diff --git a/src/test/run-pass/issue-13304.rs b/src/test/run-pass/issue-13304.rs index 9214d6b04bd2..264db106491a 100644 --- a/src/test/run-pass/issue-13304.rs +++ b/src/test/run-pass/issue-13304.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no processes // ignore-emscripten no processes #![feature(io, process_capture)] diff --git a/src/test/run-pass/issue-14456.rs b/src/test/run-pass/issue-14456.rs index 2edb45cc1c41..c4745a6e1f1f 100644 --- a/src/test/run-pass/issue-14456.rs +++ b/src/test/run-pass/issue-14456.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no processes // ignore-emscripten no processes #![feature(io, process_capture)] diff --git a/src/test/run-pass/issue-14940.rs b/src/test/run-pass/issue-14940.rs index 588fa63cfdfb..c07418201196 100644 --- a/src/test/run-pass/issue-14940.rs +++ b/src/test/run-pass/issue-14940.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no processes // ignore-emscripten no processes use std::env; diff --git a/src/test/run-pass/issue-16272.rs b/src/test/run-pass/issue-16272.rs index cd02cbf3dad3..f8d6e43c7306 100644 --- a/src/test/run-pass/issue-16272.rs +++ b/src/test/run-pass/issue-16272.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no processes // ignore-emscripten no processes use std::process::Command; diff --git a/src/test/run-pass/issue-17121.rs b/src/test/run-pass/issue-17121.rs index dcbcc2d44b5d..6eb813025ec1 100644 --- a/src/test/run-pass/issue-17121.rs +++ b/src/test/run-pass/issue-17121.rs @@ -9,6 +9,7 @@ // except according to those terms. // pretty-expanded FIXME #23616 +// ignore-cloudabi no std::fs use std::fs::File; use std::io::{self, BufReader, Read}; diff --git a/src/test/run-pass/issue-20091.rs b/src/test/run-pass/issue-20091.rs index c8ba5dbd84cd..f84cfd232f2d 100644 --- a/src/test/run-pass/issue-20091.rs +++ b/src/test/run-pass/issue-20091.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no processes // ignore-emscripten no processes #![feature(std_misc, os)] diff --git a/src/test/run-pass/issue-20644.rs b/src/test/run-pass/issue-20644.rs index 72ccd82a21ec..7cacc2e1146d 100644 --- a/src/test/run-pass/issue-20644.rs +++ b/src/test/run-pass/issue-20644.rs @@ -12,6 +12,7 @@ // had to do with trans ignoring binders. // pretty-expanded FIXME #23616 +// ignore-cloudabi no std::fs #![feature(os)] diff --git a/src/test/run-pass/issue-20797.rs b/src/test/run-pass/issue-20797.rs index e45582dc2d39..3a4be580fc3e 100644 --- a/src/test/run-pass/issue-20797.rs +++ b/src/test/run-pass/issue-20797.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no std::fs + // Regression test for #20797. use std::default::Default; diff --git a/src/test/run-pass/issue-2214.rs b/src/test/run-pass/issue-2214.rs index 7b7ecc91484b..a87af59ee798 100644 --- a/src/test/run-pass/issue-2214.rs +++ b/src/test/run-pass/issue-2214.rs @@ -34,7 +34,7 @@ mod m { #[link_name = "m"] extern { - #[cfg(unix)] + #[cfg(any(unix, target_os = "cloudabi"))] #[link_name="lgamma_r"] pub fn lgamma(n: c_double, sign: &mut c_int) -> c_double; #[cfg(windows)] diff --git a/src/test/run-pass/issue-22577.rs b/src/test/run-pass/issue-22577.rs index 96e77c05ca2b..ec4be812f9a2 100644 --- a/src/test/run-pass/issue-22577.rs +++ b/src/test/run-pass/issue-22577.rs @@ -9,6 +9,7 @@ // except according to those terms. // pretty-expanded FIXME #23616 +// ignore-cloudabi no std::fs #![feature(fs, net)] diff --git a/src/test/run-pass/issue-23036.rs b/src/test/run-pass/issue-23036.rs index 0ed4126e6cd7..c3c9ede5adaf 100644 --- a/src/test/run-pass/issue-23036.rs +++ b/src/test/run-pass/issue-23036.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no std::path + use std::collections::HashMap; use std::path::Path; diff --git a/src/test/run-pass/issue-23649-2.rs b/src/test/run-pass/issue-23649-2.rs index 018c0690f8ba..c48ae414cc30 100644 --- a/src/test/run-pass/issue-23649-2.rs +++ b/src/test/run-pass/issue-23649-2.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no std::path + use std::collections::HashMap; use std::path::{Path, PathBuf}; diff --git a/src/test/run-pass/issue-24313.rs b/src/test/run-pass/issue-24313.rs index ad385ee78e0c..2e7d2e490b3c 100644 --- a/src/test/run-pass/issue-24313.rs +++ b/src/test/run-pass/issue-24313.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no processes // ignore-emscripten no threads use std::thread; diff --git a/src/test/run-pass/issue-27859.rs b/src/test/run-pass/issue-27859.rs index 56036caca15b..d184724cf6f7 100644 --- a/src/test/run-pass/issue-27859.rs +++ b/src/test/run-pass/issue-27859.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no std::env // ignore-wasm32 issue 42629 #[inline(never)] diff --git a/src/test/run-pass/issue-30490.rs b/src/test/run-pass/issue-30490.rs index 4296107dd457..633bd53864d1 100644 --- a/src/test/run-pass/issue-30490.rs +++ b/src/test/run-pass/issue-30490.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no processes // ignore-emscripten no processes // Previously libstd would set stdio descriptors of a child process diff --git a/src/test/run-pass/issue-33770.rs b/src/test/run-pass/issue-33770.rs index 380627007078..7fad2b3e4a29 100644 --- a/src/test/run-pass/issue-33770.rs +++ b/src/test/run-pass/issue-33770.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no processes // ignore-emscripten no processes use std::process::{Command, Stdio}; diff --git a/src/test/run-pass/issue-4541.rs b/src/test/run-pass/issue-4541.rs index 1f090d8b622e..68f6945cd9cb 100644 --- a/src/test/run-pass/issue-4541.rs +++ b/src/test/run-pass/issue-4541.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no std::env + fn parse_args() -> String { let args: Vec<_> = ::std::env::args().collect(); let mut n = 0; diff --git a/src/test/run-pass/issue-4542.rs b/src/test/run-pass/issue-4542.rs index 23e8f5b0bda0..59837e4bd53f 100644 --- a/src/test/run-pass/issue-4542.rs +++ b/src/test/run-pass/issue-4542.rs @@ -9,6 +9,7 @@ // except according to those terms. // pretty-expanded FIXME #23616 +// ignore-cloudabi no std::env use std::env; diff --git a/src/test/run-pass/issue-45731.rs b/src/test/run-pass/issue-45731.rs index ec35035dab44..e2c04c964d77 100644 --- a/src/test/run-pass/issue-45731.rs +++ b/src/test/run-pass/issue-45731.rs @@ -10,11 +10,11 @@ // compile-flags:--test -g -use std::{env, panic, fs}; - #[cfg(target_os = "macos")] #[test] fn simple_test() { + use std::{env, panic, fs}; + // Find our dSYM and replace the DWARF binary with an empty file let mut dsym_path = env::current_exe().unwrap(); let executable_name = dsym_path.file_name().unwrap().to_str().unwrap().to_string(); diff --git a/src/test/run-pass/multi-panic.rs b/src/test/run-pass/multi-panic.rs index c15b40d4dda2..2e6e10935fa7 100644 --- a/src/test/run-pass/multi-panic.rs +++ b/src/test/run-pass/multi-panic.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no processes // ignore-emscripten no processes fn check_for_no_backtrace(test: std::process::Output) { diff --git a/src/test/run-pass/no-stdio.rs b/src/test/run-pass/no-stdio.rs index 7b6b711315af..d34241769603 100644 --- a/src/test/run-pass/no-stdio.rs +++ b/src/test/run-pass/no-stdio.rs @@ -8,8 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// ignore-emscripten no processes // ignore-android +// ignore-cloudabi no processes +// ignore-emscripten no processes #![feature(libc)] diff --git a/src/test/run-pass/out-of-stack.rs b/src/test/run-pass/out-of-stack.rs index 485335a2d800..6ed07fb2f7d2 100644 --- a/src/test/run-pass/out-of-stack.rs +++ b/src/test/run-pass/out-of-stack.rs @@ -10,6 +10,7 @@ // ignore-android: FIXME (#20004) // ignore-musl +// ignore-cloudabi no processes // ignore-emscripten no processes #![feature(asm)] diff --git a/src/test/run-pass/panic-runtime/abort-link-to-unwinding-crates.rs b/src/test/run-pass/panic-runtime/abort-link-to-unwinding-crates.rs index d1fdc8afa653..6917c2db3b47 100644 --- a/src/test/run-pass/panic-runtime/abort-link-to-unwinding-crates.rs +++ b/src/test/run-pass/panic-runtime/abort-link-to-unwinding-crates.rs @@ -11,6 +11,7 @@ // compile-flags:-C panic=abort // aux-build:exit-success-if-unwind.rs // no-prefer-dynamic +// ignore-cloudabi no processes // ignore-emscripten no processes extern crate exit_success_if_unwind; diff --git a/src/test/run-pass/panic-runtime/abort.rs b/src/test/run-pass/panic-runtime/abort.rs index bb541b29d7c7..3a3b86aec02a 100644 --- a/src/test/run-pass/panic-runtime/abort.rs +++ b/src/test/run-pass/panic-runtime/abort.rs @@ -10,6 +10,7 @@ // compile-flags:-C panic=abort // no-prefer-dynamic +// ignore-cloudabi no processes // ignore-emscripten no processes use std::process::Command; diff --git a/src/test/run-pass/panic-runtime/lto-abort.rs b/src/test/run-pass/panic-runtime/lto-abort.rs index 59e9474aab2e..54e02fb69757 100644 --- a/src/test/run-pass/panic-runtime/lto-abort.rs +++ b/src/test/run-pass/panic-runtime/lto-abort.rs @@ -10,6 +10,7 @@ // compile-flags:-C lto -C panic=abort // no-prefer-dynamic +// ignore-cloudabi no processes // ignore-emscripten no processes use std::process::Command; diff --git a/src/test/run-pass/panic-runtime/lto-unwind.rs b/src/test/run-pass/panic-runtime/lto-unwind.rs index 6d28b8d12f62..52f10688f14f 100644 --- a/src/test/run-pass/panic-runtime/lto-unwind.rs +++ b/src/test/run-pass/panic-runtime/lto-unwind.rs @@ -10,6 +10,7 @@ // compile-flags:-C lto -C panic=unwind // no-prefer-dynamic +// ignore-cloudabi no processes // ignore-emscripten no processes use std::process::Command; diff --git a/src/test/run-pass/paths-containing-nul.rs b/src/test/run-pass/paths-containing-nul.rs index 9f39146e238d..e0fe1ea72df1 100644 --- a/src/test/run-pass/paths-containing-nul.rs +++ b/src/test/run-pass/paths-containing-nul.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no files or I/O // ignore-wasm32-bare no files or I/O use std::fs; diff --git a/src/test/run-pass/print-stdout-eprint-stderr.rs b/src/test/run-pass/print-stdout-eprint-stderr.rs index 0a0f30aba72c..9e36089cc23d 100644 --- a/src/test/run-pass/print-stdout-eprint-stderr.rs +++ b/src/test/run-pass/print-stdout-eprint-stderr.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi spawning processes is not supported // ignore-emscripten spawning processes is not supported use std::{env, process}; diff --git a/src/test/run-pass/process-envs.rs b/src/test/run-pass/process-envs.rs index 1622517198a2..e399bc20d52a 100644 --- a/src/test/run-pass/process-envs.rs +++ b/src/test/run-pass/process-envs.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no processes // ignore-emscripten no processes use std::process::Command; diff --git a/src/test/run-pass/process-exit.rs b/src/test/run-pass/process-exit.rs index 5abc06b75e14..44ef4a9df71a 100644 --- a/src/test/run-pass/process-exit.rs +++ b/src/test/run-pass/process-exit.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no processes // ignore-emscripten no processes use std::env; diff --git a/src/test/run-pass/process-remove-from-env.rs b/src/test/run-pass/process-remove-from-env.rs index 7a9b431d5709..9011ffcf45ad 100644 --- a/src/test/run-pass/process-remove-from-env.rs +++ b/src/test/run-pass/process-remove-from-env.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no processes // ignore-emscripten no processes use std::process::Command; diff --git a/src/test/run-pass/process-sigpipe.rs b/src/test/run-pass/process-sigpipe.rs index ebc7f1346104..a436e48ea530 100644 --- a/src/test/run-pass/process-sigpipe.rs +++ b/src/test/run-pass/process-sigpipe.rs @@ -18,6 +18,7 @@ // (instead of running forever), and that it does not print an error // message about a broken pipe. +// ignore-cloudabi no subprocesses support // ignore-emscripten no threads support use std::process; diff --git a/src/test/run-pass/process-spawn-with-unicode-params.rs b/src/test/run-pass/process-spawn-with-unicode-params.rs index 7b8542072632..1e22f17986c3 100644 --- a/src/test/run-pass/process-spawn-with-unicode-params.rs +++ b/src/test/run-pass/process-spawn-with-unicode-params.rs @@ -16,6 +16,7 @@ // non-ASCII characters. The child process ensures all the strings are // intact. +// ignore-cloudabi no processes // ignore-emscripten no processes use std::io::prelude::*; diff --git a/src/test/run-pass/process-status-inherits-stdin.rs b/src/test/run-pass/process-status-inherits-stdin.rs index 5ea48a4ff33b..fdf5cf5ad928 100644 --- a/src/test/run-pass/process-status-inherits-stdin.rs +++ b/src/test/run-pass/process-status-inherits-stdin.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no processes // ignore-emscripten no processes use std::env; diff --git a/src/test/run-pass/rec-align-u64.rs b/src/test/run-pass/rec-align-u64.rs index d051e05b5f9e..3ff8961166d9 100644 --- a/src/test/run-pass/rec-align-u64.rs +++ b/src/test/run-pass/rec-align-u64.rs @@ -38,14 +38,15 @@ struct Outer { } -#[cfg(any(target_os = "linux", - target_os = "macos", - target_os = "freebsd", +#[cfg(any(target_os = "cloudabi", target_os = "dragonfly", + target_os = "emscripten", + target_os = "freebsd", + target_os = "linux", + target_os = "macos", target_os = "netbsd", target_os = "openbsd", - target_os = "solaris", - target_os = "emscripten"))] + target_os = "solaris"))] mod m { #[cfg(target_arch = "x86")] pub mod m { diff --git a/src/test/run-pass/rfc-1014.rs b/src/test/run-pass/rfc-1014.rs index 950c2e0c4dfa..61487b6953db 100644 --- a/src/test/run-pass/rfc-1014.rs +++ b/src/test/run-pass/rfc-1014.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi stdout does not map to file descriptor 1 by default // ignore-wasm32-bare no libc #![feature(libc)] diff --git a/src/test/run-pass/running-with-no-runtime.rs b/src/test/run-pass/running-with-no-runtime.rs index 6f696c1c9cea..a0b83ba4c24a 100644 --- a/src/test/run-pass/running-with-no-runtime.rs +++ b/src/test/run-pass/running-with-no-runtime.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi spawning processes is not supported // ignore-emscripten spawning processes is not supported #![feature(start)] diff --git a/src/test/run-pass/segfault-no-out-of-stack.rs b/src/test/run-pass/segfault-no-out-of-stack.rs index 0f98cfe27f64..307ead4b74f7 100644 --- a/src/test/run-pass/segfault-no-out-of-stack.rs +++ b/src/test/run-pass/segfault-no-out-of-stack.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi can't run commands // ignore-emscripten can't run commands #![feature(libc)] diff --git a/src/test/run-pass/signal-alternate-stack-cleanup.rs b/src/test/run-pass/signal-alternate-stack-cleanup.rs index 73ccd28a3e96..508fbe80ca4b 100644 --- a/src/test/run-pass/signal-alternate-stack-cleanup.rs +++ b/src/test/run-pass/signal-alternate-stack-cleanup.rs @@ -12,8 +12,9 @@ // main thread exit while still being in use by signal handlers. This test // triggers this situation by sending signal from atexit handler. // -// ignore-windows +// ignore-cloudabi no signal handling support // ignore-wasm32-bare no libc +// ignore-windows #![feature(libc)] extern crate libc; diff --git a/src/test/run-pass/signal-exit-status.rs b/src/test/run-pass/signal-exit-status.rs index 0f6832acec81..76171a4cc465 100644 --- a/src/test/run-pass/signal-exit-status.rs +++ b/src/test/run-pass/signal-exit-status.rs @@ -8,8 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// ignore-windows +// ignore-cloudabi no processes // ignore-emscripten no processes +// ignore-windows use std::env; use std::process::Command; diff --git a/src/test/run-pass/sigpipe-should-be-ignored.rs b/src/test/run-pass/sigpipe-should-be-ignored.rs index 465feb4b7790..f5e2239538f6 100644 --- a/src/test/run-pass/sigpipe-should-be-ignored.rs +++ b/src/test/run-pass/sigpipe-should-be-ignored.rs @@ -11,6 +11,7 @@ // Be sure that when a SIGPIPE would have been received that the entire process // doesn't die in a ball of fire, but rather it's gracefully handled. +// ignore-cloudabi no processes // ignore-emscripten no processes use std::env; diff --git a/src/test/run-pass/sse2.rs b/src/test/run-pass/sse2.rs index c27f83011cb1..c2414e5ff5d9 100644 --- a/src/test/run-pass/sse2.rs +++ b/src/test/run-pass/sse2.rs @@ -7,7 +7,9 @@ // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. + // min-llvm-version 4.0 +// ignore-cloudabi no std::env #![feature(cfg_target_feature)] diff --git a/src/test/run-pass/stack-probes-lto.rs b/src/test/run-pass/stack-probes-lto.rs index 78a1019578e3..22555c8d6a77 100644 --- a/src/test/run-pass/stack-probes-lto.rs +++ b/src/test/run-pass/stack-probes-lto.rs @@ -11,6 +11,7 @@ // ignore-arm // ignore-aarch64 // ignore-wasm +// ignore-cloudabi no processes // ignore-emscripten no processes // ignore-musl FIXME #31506 // ignore-pretty diff --git a/src/test/run-pass/stack-probes.rs b/src/test/run-pass/stack-probes.rs index bb9471e1b48b..248ad7019261 100644 --- a/src/test/run-pass/stack-probes.rs +++ b/src/test/run-pass/stack-probes.rs @@ -11,6 +11,7 @@ // ignore-arm // ignore-aarch64 // ignore-wasm +// ignore-cloudabi no processes // ignore-emscripten no processes // ignore-musl FIXME #31506 // no-system-llvm diff --git a/src/test/run-pass/stdio-is-blocking.rs b/src/test/run-pass/stdio-is-blocking.rs index cce1077202c3..8d4ee1462840 100644 --- a/src/test/run-pass/stdio-is-blocking.rs +++ b/src/test/run-pass/stdio-is-blocking.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no processes // ignore-emscripten no processes use std::env; diff --git a/src/test/run-pass/sync-send-in-std.rs b/src/test/run-pass/sync-send-in-std.rs index 4dadfdf9c756..f03387957bcf 100644 --- a/src/test/run-pass/sync-send-in-std.rs +++ b/src/test/run-pass/sync-send-in-std.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi networking not available // ignore-wasm32-bare networking not available #![feature(lookup_host)] diff --git a/src/test/run-pass/tcp-stress.rs b/src/test/run-pass/tcp-stress.rs index 0ba019c591c1..30da1e523fc5 100644 --- a/src/test/run-pass/tcp-stress.rs +++ b/src/test/run-pass/tcp-stress.rs @@ -10,9 +10,10 @@ // ignore-android needs extra network permissions // ignore-bitrig system ulimit (Too many open files) +// ignore-cloudabi no global network namespace access +// ignore-emscripten no threads or sockets support // ignore-netbsd system ulimit (Too many open files) // ignore-openbsd system ulimit (Too many open files) -// ignore-emscripten no threads or sockets support use std::io::prelude::*; use std::net::{TcpListener, TcpStream}; diff --git a/src/test/run-pass/try-operator.rs b/src/test/run-pass/try-operator.rs index 29de6364bf14..d615c5f1034d 100644 --- a/src/test/run-pass/try-operator.rs +++ b/src/test/run-pass/try-operator.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no std::fs + use std::fs::File; use std::io::{Read, self}; use std::num::ParseIntError; diff --git a/src/test/run-pass/try-wait.rs b/src/test/run-pass/try-wait.rs index 0ee2cb9238c9..b8c0d80c5a67 100644 --- a/src/test/run-pass/try-wait.rs +++ b/src/test/run-pass/try-wait.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no processes // ignore-emscripten no processes #![feature(process_try_wait)] diff --git a/src/test/run-pass/wait-forked-but-failed-child.rs b/src/test/run-pass/wait-forked-but-failed-child.rs index 744f2989bcfc..dc47108e183d 100644 --- a/src/test/run-pass/wait-forked-but-failed-child.rs +++ b/src/test/run-pass/wait-forked-but-failed-child.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no processes // ignore-emscripten no processes #![feature(libc)] diff --git a/src/test/run-pass/weird-exit-code.rs b/src/test/run-pass/weird-exit-code.rs index 27c7f9bef15c..cdd6a9b5331d 100644 --- a/src/test/run-pass/weird-exit-code.rs +++ b/src/test/run-pass/weird-exit-code.rs @@ -17,13 +17,10 @@ // Note that this is disabled on unix as processes exiting with 259 will have // their exit status truncated to 3 (only the lower 8 bits are used). -use std::process::{self, Command}; -use std::env; - +#[cfg(windows)] fn main() { - if !cfg!(windows) { - return - } + use std::process::{self, Command}; + use std::env; if env::args().len() == 1 { let status = Command::new(env::current_exe().unwrap()) @@ -35,3 +32,6 @@ fn main() { process::exit(259); } } + +#[cfg(not(windows))] +fn main() {} diff --git a/src/test/run-pass/x86stdcall.rs b/src/test/run-pass/x86stdcall.rs index e2e64ddfa315..69ac68d2583e 100644 --- a/src/test/run-pass/x86stdcall.rs +++ b/src/test/run-pass/x86stdcall.rs @@ -32,14 +32,15 @@ pub fn main() { } } -#[cfg(any(target_os = "macos", - target_os = "linux", - target_os = "freebsd", - target_os = "dragonfly", +#[cfg(any(target_os = "android", target_os = "bitrig", + target_os = "cloudabi", + target_os = "dragonfly", + target_os = "emscripten", + target_os = "freebsd", + target_os = "linux", + target_os = "macos", target_os = "netbsd", target_os = "openbsd", - target_os = "android", - target_os = "solaris", - target_os = "emscripten"))] + target_os = "solaris"))] pub fn main() { } diff --git a/src/test/ui/issue-46576.rs b/src/test/ui/issue-46576.rs index 80f15eb4cac1..636a1e9a0642 100644 --- a/src/test/ui/issue-46576.rs +++ b/src/test/ui/issue-46576.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no std::fs support + #![allow(dead_code)] #![deny(unused_imports)] diff --git a/src/test/ui/lint/use_suggestion_json.rs b/src/test/ui/lint/use_suggestion_json.rs index 27232c4fec4a..c097a8f13429 100644 --- a/src/test/ui/lint/use_suggestion_json.rs +++ b/src/test/ui/lint/use_suggestion_json.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi // compile-flags: --error-format pretty-json -Zunstable-options // The output for humans should just highlight the whole span without showing diff --git a/src/test/ui/mismatched_types/recovered-block.rs b/src/test/ui/mismatched_types/recovered-block.rs index f3e3579f2bc4..8166254e8a68 100644 --- a/src/test/ui/mismatched_types/recovered-block.rs +++ b/src/test/ui/mismatched_types/recovered-block.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no std::env support + use std::env; pub struct Foo { diff --git a/src/test/ui/resolve/token-error-correct-3.rs b/src/test/ui/resolve/token-error-correct-3.rs index 6d216178a752..8881b965f948 100644 --- a/src/test/ui/resolve/token-error-correct-3.rs +++ b/src/test/ui/resolve/token-error-correct-3.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no std::fs support + // Test that we do some basic error correcton in the tokeniser (and don't spew // too many bogus errors). diff --git a/src/test/ui/resolve/use_suggestion_placement.rs b/src/test/ui/resolve/use_suggestion_placement.rs index 87f38df0442c..835c42e45535 100644 --- a/src/test/ui/resolve/use_suggestion_placement.rs +++ b/src/test/ui/resolve/use_suggestion_placement.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no std::path support + macro_rules! y { () => {} } diff --git a/src/test/ui/span/issue-33884.rs b/src/test/ui/span/issue-33884.rs index 93aa502ee153..d0f23caa5383 100644 --- a/src/test/ui/span/issue-33884.rs +++ b/src/test/ui/span/issue-33884.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no std::net support + use std::net::TcpListener; use std::net::TcpStream; use std::io::{self, Read, Write}; diff --git a/src/test/ui/suggestions/try-operator-on-main.rs b/src/test/ui/suggestions/try-operator-on-main.rs index e9d285941b76..e52ef45c2ecf 100644 --- a/src/test/ui/suggestions/try-operator-on-main.rs +++ b/src/test/ui/suggestions/try-operator-on-main.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-cloudabi no std::fs support + #![feature(try_trait)] use std::ops::Try; From 04ce26a6f6a91a63255d37e5550e5ff4a9ed28ff Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 2 Jan 2018 14:18:40 +0100 Subject: [PATCH 2/5] Force the creation of libs instead of dylibs on CloudABI. CloudABI doesn't support the creation of dynamic libraries. Any test making use of auxiliary libraries will fail without this change applied. --- src/tools/compiletest/src/runtest.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index aceb472ca631..1b87576ba0b0 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -1368,9 +1368,10 @@ impl<'test> TestCx<'test> { let crate_type = if aux_props.no_prefer_dynamic { None - } else if (self.config.target.contains("musl") && !aux_props.force_host) - || self.config.target.contains("wasm32") + } else if self.config.target.contains("cloudabi") || self.config.target.contains("emscripten") + || (self.config.target.contains("musl") && !aux_props.force_host) + || self.config.target.contains("wasm32") { // We primarily compile all auxiliary libraries as dynamic libraries // to avoid code size bloat and large binaries as much as possible From abced5a6b5b0d2f1bcdb0311f8c99a701b7f0c49 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 2 Jan 2018 14:22:37 +0100 Subject: [PATCH 3/5] 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(-) diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 839f697b39cf..2daadfc0265e 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 } From c51f8783f27c00397ded2d17dd71cc603cbf5245 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 2 Jan 2018 17:19:20 +0100 Subject: [PATCH 4/5] Correct for changes in line numbers in expected stderr output. Due to the disable-cloudabi tags being added to the source files, the expected output of the compiler is altered slightly. --- src/test/ui/issue-46576.stderr | 8 +- src/test/ui/lint/use_suggestion_json.stderr | 116 +++++++++--------- .../mismatched_types/recovered-block.stderr | 10 +- .../ui/resolve/token-error-correct-3.stderr | 26 ++-- .../resolve/use_suggestion_placement.stderr | 20 +-- src/test/ui/span/issue-33884.stderr | 4 +- .../suggestions/try-operator-on-main.stderr | 16 +-- 7 files changed, 100 insertions(+), 100 deletions(-) diff --git a/src/test/ui/issue-46576.stderr b/src/test/ui/issue-46576.stderr index d73da19ebddf..e0be6b4fdc2c 100644 --- a/src/test/ui/issue-46576.stderr +++ b/src/test/ui/issue-46576.stderr @@ -1,13 +1,13 @@ error: unused import: `BufRead` - --> $DIR/issue-46576.rs:15:15 + --> $DIR/issue-46576.rs:17:15 | -15 | use std::io::{BufRead, BufReader, Read}; +17 | use std::io::{BufRead, BufReader, Read}; | ^^^^^^^ | note: lint level defined here - --> $DIR/issue-46576.rs:12:9 + --> $DIR/issue-46576.rs:14:9 | -12 | #![deny(unused_imports)] +14 | #![deny(unused_imports)] | ^^^^^^^^^^^^^^ error: aborting due to previous error diff --git a/src/test/ui/lint/use_suggestion_json.stderr b/src/test/ui/lint/use_suggestion_json.stderr index 846d7df445d5..86c2ad4c0e7a 100644 --- a/src/test/ui/lint/use_suggestion_json.stderr +++ b/src/test/ui/lint/use_suggestion_json.stderr @@ -73,10 +73,10 @@ mod foo { "spans": [ { "file_name": "$DIR/use_suggestion_json.rs", - "byte_start": 888, - "byte_end": 892, - "line_start": 20, - "line_end": 20, + "byte_start": 907, + "byte_end": 911, + "line_start": 21, + "line_end": 21, "column_start": 12, "column_end": 16, "is_primary": true, @@ -100,10 +100,10 @@ mod foo { "spans": [ { "file_name": "$DIR/use_suggestion_json.rs", - "byte_start": 865, - "byte_end": 865, - "line_start": 19, - "line_end": 19, + "byte_start": 884, + "byte_end": 884, + "line_start": 20, + "line_end": 20, "column_start": 1, "column_end": 1, "is_primary": true, @@ -122,10 +122,10 @@ mod foo { }, { "file_name": "$DIR/use_suggestion_json.rs", - "byte_start": 865, - "byte_end": 865, - "line_start": 19, - "line_end": 19, + "byte_start": 884, + "byte_end": 884, + "line_start": 20, + "line_end": 20, "column_start": 1, "column_end": 1, "is_primary": true, @@ -144,10 +144,10 @@ mod foo { }, { "file_name": "$DIR/use_suggestion_json.rs", - "byte_start": 865, - "byte_end": 865, - "line_start": 19, - "line_end": 19, + "byte_start": 884, + "byte_end": 884, + "line_start": 20, + "line_end": 20, "column_start": 1, "column_end": 1, "is_primary": true, @@ -166,10 +166,10 @@ mod foo { }, { "file_name": "$DIR/use_suggestion_json.rs", - "byte_start": 865, - "byte_end": 865, - "line_start": 19, - "line_end": 19, + "byte_start": 884, + "byte_end": 884, + "line_start": 20, + "line_end": 20, "column_start": 1, "column_end": 1, "is_primary": true, @@ -188,10 +188,10 @@ mod foo { }, { "file_name": "$DIR/use_suggestion_json.rs", - "byte_start": 865, - "byte_end": 865, - "line_start": 19, - "line_end": 19, + "byte_start": 884, + "byte_end": 884, + "line_start": 20, + "line_end": 20, "column_start": 1, "column_end": 1, "is_primary": true, @@ -210,10 +210,10 @@ mod foo { }, { "file_name": "$DIR/use_suggestion_json.rs", - "byte_start": 865, - "byte_end": 865, - "line_start": 19, - "line_end": 19, + "byte_start": 884, + "byte_end": 884, + "line_start": 20, + "line_end": 20, "column_start": 1, "column_end": 1, "is_primary": true, @@ -232,10 +232,10 @@ mod foo { }, { "file_name": "$DIR/use_suggestion_json.rs", - "byte_start": 865, - "byte_end": 865, - "line_start": 19, - "line_end": 19, + "byte_start": 884, + "byte_end": 884, + "line_start": 20, + "line_end": 20, "column_start": 1, "column_end": 1, "is_primary": true, @@ -254,10 +254,10 @@ mod foo { }, { "file_name": "$DIR/use_suggestion_json.rs", - "byte_start": 865, - "byte_end": 865, - "line_start": 19, - "line_end": 19, + "byte_start": 884, + "byte_end": 884, + "line_start": 20, + "line_end": 20, "column_start": 1, "column_end": 1, "is_primary": true, @@ -276,10 +276,10 @@ mod foo { }, { "file_name": "$DIR/use_suggestion_json.rs", - "byte_start": 865, - "byte_end": 865, - "line_start": 19, - "line_end": 19, + "byte_start": 884, + "byte_end": 884, + "line_start": 20, + "line_end": 20, "column_start": 1, "column_end": 1, "is_primary": true, @@ -298,10 +298,10 @@ mod foo { }, { "file_name": "$DIR/use_suggestion_json.rs", - "byte_start": 865, - "byte_end": 865, - "line_start": 19, - "line_end": 19, + "byte_start": 884, + "byte_end": 884, + "line_start": 20, + "line_end": 20, "column_start": 1, "column_end": 1, "is_primary": true, @@ -320,10 +320,10 @@ mod foo { }, { "file_name": "$DIR/use_suggestion_json.rs", - "byte_start": 865, - "byte_end": 865, - "line_start": 19, - "line_end": 19, + "byte_start": 884, + "byte_end": 884, + "line_start": 20, + "line_end": 20, "column_start": 1, "column_end": 1, "is_primary": true, @@ -342,10 +342,10 @@ mod foo { }, { "file_name": "$DIR/use_suggestion_json.rs", - "byte_start": 865, - "byte_end": 865, - "line_start": 19, - "line_end": 19, + "byte_start": 884, + "byte_end": 884, + "line_start": 20, + "line_end": 20, "column_start": 1, "column_end": 1, "is_primary": true, @@ -368,19 +368,19 @@ mod foo { } ], "rendered": "error[E0412]: cannot find type `Iter` in this scope - --> $DIR/use_suggestion_json.rs:20:12 + --> $DIR/use_suggestion_json.rs:21:12 | -20 | let x: Iter; +21 | let x: Iter; | ^^^^ not found in this scope help: possible candidates are found in other modules, you can import them into scope | -19 | use std::collections::binary_heap::Iter; +20 | use std::collections::binary_heap::Iter; | -19 | use std::collections::btree_map::Iter; +20 | use std::collections::btree_map::Iter; | -19 | use std::collections::btree_set::Iter; +20 | use std::collections::btree_set::Iter; | -19 | use std::collections::hash_map::Iter; +20 | use std::collections::hash_map::Iter; | and 8 other candidates diff --git a/src/test/ui/mismatched_types/recovered-block.stderr b/src/test/ui/mismatched_types/recovered-block.stderr index dcaf2812f599..23c1a5b8c244 100644 --- a/src/test/ui/mismatched_types/recovered-block.stderr +++ b/src/test/ui/mismatched_types/recovered-block.stderr @@ -1,17 +1,17 @@ error: missing `struct` for struct definition - --> $DIR/recovered-block.rs:21:8 + --> $DIR/recovered-block.rs:23:8 | -21 | pub Foo { text } +23 | pub Foo { text } | ^ help: add `struct` here to parse `Foo` as a public struct | -21 | pub struct Foo { text } +23 | pub struct Foo { text } | ^^^^^^ error: expected one of `(` or `<`, found `{` - --> $DIR/recovered-block.rs:27:9 + --> $DIR/recovered-block.rs:29:9 | -27 | Foo { text: "".to_string() } +29 | Foo { text: "".to_string() } | ^ expected one of `(` or `<` here error: aborting due to 2 previous errors diff --git a/src/test/ui/resolve/token-error-correct-3.stderr b/src/test/ui/resolve/token-error-correct-3.stderr index f2281a24e238..33cf1d87817f 100644 --- a/src/test/ui/resolve/token-error-correct-3.stderr +++ b/src/test/ui/resolve/token-error-correct-3.stderr @@ -1,40 +1,40 @@ error: incorrect close delimiter: `}` - --> $DIR/token-error-correct-3.rs:28:9 + --> $DIR/token-error-correct-3.rs:30:9 | -28 | } else { //~ ERROR: incorrect close delimiter: `}` +30 | } else { //~ ERROR: incorrect close delimiter: `}` | ^ | note: unclosed delimiter - --> $DIR/token-error-correct-3.rs:22:21 + --> $DIR/token-error-correct-3.rs:24:21 | -22 | callback(path.as_ref(); //~ ERROR expected one of +24 | callback(path.as_ref(); //~ ERROR expected one of | ^ error: expected one of `,`, `.`, `?`, or an operator, found `;` - --> $DIR/token-error-correct-3.rs:22:35 + --> $DIR/token-error-correct-3.rs:24:35 | -22 | callback(path.as_ref(); //~ ERROR expected one of +24 | callback(path.as_ref(); //~ ERROR expected one of | ^ expected one of `,`, `.`, `?`, or an operator here error: expected one of `.`, `;`, `?`, `}`, or an operator, found `)` - --> $DIR/token-error-correct-3.rs:28:9 + --> $DIR/token-error-correct-3.rs:30:9 | -23 | fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types +25 | fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types | - expected one of `.`, `;`, `?`, `}`, or an operator here ... -28 | } else { //~ ERROR: incorrect close delimiter: `}` +30 | } else { //~ ERROR: incorrect close delimiter: `}` | ^ unexpected token error[E0425]: cannot find function `is_directory` in this scope - --> $DIR/token-error-correct-3.rs:21:13 + --> $DIR/token-error-correct-3.rs:23:13 | -21 | if !is_directory(path.as_ref()) { //~ ERROR: cannot find function `is_directory` +23 | if !is_directory(path.as_ref()) { //~ ERROR: cannot find function `is_directory` | ^^^^^^^^^^^^ not found in this scope error[E0308]: mismatched types - --> $DIR/token-error-correct-3.rs:23:13 + --> $DIR/token-error-correct-3.rs:25:13 | -23 | fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types +25 | fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: try adding a semicolon: `;` | | | expected (), found enum `std::result::Result` diff --git a/src/test/ui/resolve/use_suggestion_placement.stderr b/src/test/ui/resolve/use_suggestion_placement.stderr index 1cc2d06ab684..3607aa5e9abd 100644 --- a/src/test/ui/resolve/use_suggestion_placement.stderr +++ b/src/test/ui/resolve/use_suggestion_placement.stderr @@ -1,33 +1,33 @@ error[E0412]: cannot find type `Path` in this scope - --> $DIR/use_suggestion_placement.rs:25:16 + --> $DIR/use_suggestion_placement.rs:27:16 | -25 | type Bar = Path; //~ ERROR cannot find +27 | type Bar = Path; //~ ERROR cannot find | ^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | -21 | use std::path::Path; +23 | use std::path::Path; | error[E0425]: cannot find value `A` in this scope - --> $DIR/use_suggestion_placement.rs:30:13 + --> $DIR/use_suggestion_placement.rs:32:13 | -30 | let _ = A; //~ ERROR cannot find +32 | let _ = A; //~ ERROR cannot find | ^ not found in this scope help: possible candidate is found in another module, you can import it into scope | -11 | use m::A; +13 | use m::A; | error[E0412]: cannot find type `HashMap` in this scope - --> $DIR/use_suggestion_placement.rs:35:23 + --> $DIR/use_suggestion_placement.rs:37:23 | -35 | type Dict = HashMap; //~ ERROR cannot find +37 | type Dict = HashMap; //~ ERROR cannot find | ^^^^^^^ not found in this scope help: possible candidates are found in other modules, you can import them into scope | -11 | use std::collections::HashMap; +13 | use std::collections::HashMap; | -11 | use std::collections::hash_map::HashMap; +13 | use std::collections::hash_map::HashMap; | error: aborting due to 3 previous errors diff --git a/src/test/ui/span/issue-33884.stderr b/src/test/ui/span/issue-33884.stderr index cf5190bba0c0..5a9c2051a715 100644 --- a/src/test/ui/span/issue-33884.stderr +++ b/src/test/ui/span/issue-33884.stderr @@ -1,7 +1,7 @@ error[E0308]: mismatched types - --> $DIR/issue-33884.rs:16:22 + --> $DIR/issue-33884.rs:18:22 | -16 | stream.write_fmt(format!("message received")) +18 | stream.write_fmt(format!("message received")) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::fmt::Arguments`, found struct `std::string::String` | = note: expected type `std::fmt::Arguments<'_>` diff --git a/src/test/ui/suggestions/try-operator-on-main.stderr b/src/test/ui/suggestions/try-operator-on-main.stderr index 8b17e06065b5..beb627bda6bd 100644 --- a/src/test/ui/suggestions/try-operator-on-main.stderr +++ b/src/test/ui/suggestions/try-operator-on-main.stderr @@ -1,7 +1,7 @@ error[E0277]: the `?` operator can only be used in a function that returns `Result` (or another type that implements `std::ops::Try`) - --> $DIR/try-operator-on-main.rs:17:5 + --> $DIR/try-operator-on-main.rs:19:5 | -17 | std::fs::File::open("foo")?; //~ ERROR the `?` operator can only +19 | std::fs::File::open("foo")?; //~ ERROR the `?` operator can only | --------------------------- | | | cannot use the `?` operator in a function that returns `()` @@ -11,9 +11,9 @@ error[E0277]: the `?` operator can only be used in a function that returns `Resu = note: required by `std::ops::Try::from_error` error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` - --> $DIR/try-operator-on-main.rs:20:5 + --> $DIR/try-operator-on-main.rs:22:5 | -20 | ()?; //~ ERROR the `?` operator can only +22 | ()?; //~ ERROR the `?` operator can only | --- | | | the `?` operator cannot be applied to type `()` @@ -23,17 +23,17 @@ error[E0277]: the `?` operator can only be applied to values that implement `std = note: required by `std::ops::Try::into_result` error[E0277]: the trait bound `(): std::ops::Try` is not satisfied - --> $DIR/try-operator-on-main.rs:23:5 + --> $DIR/try-operator-on-main.rs:25:5 | -23 | try_trait_generic::<()>(); //~ ERROR the trait bound +25 | try_trait_generic::<()>(); //~ ERROR the trait bound | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::ops::Try` is not implemented for `()` | = note: required by `try_trait_generic` error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` - --> $DIR/try-operator-on-main.rs:30:5 + --> $DIR/try-operator-on-main.rs:32:5 | -30 | ()?; //~ ERROR the `?` operator can only +32 | ()?; //~ ERROR the `?` operator can only | --- | | | the `?` operator cannot be applied to type `()` From 3ca407e24bcc2b668de1f56e453903701849f79f Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Wed, 3 Jan 2018 15:40:37 +0100 Subject: [PATCH 5/5] Restore a FIXME that was removed by one of my previous changes. Requested by: kennytm --- src/libtest/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 2daadfc0265e..76557982a027 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -981,6 +981,7 @@ fn use_color(opts: &TestOpts) -> bool { target_os = "redox", all(target_arch = "wasm32", not(target_os = "emscripten"))))] fn stdout_isatty() -> bool { + // FIXME: Implement isatty on Redox false } #[cfg(unix)]