mirror of https://github.com/rust-lang/rust.git
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.
This commit is contained in:
parent
b9cf26c38a
commit
3f880912e9
|
@ -9,19 +9,20 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// This test is for *-windows-msvc only.
|
// This test is for *-windows-msvc only.
|
||||||
// ignore-gnu
|
|
||||||
// ignore-android
|
// ignore-android
|
||||||
// ignore-bitrig
|
// ignore-bitrig
|
||||||
// ignore-macos
|
// ignore-cloudabi
|
||||||
// ignore-dragonfly
|
// ignore-dragonfly
|
||||||
|
// ignore-emscripten
|
||||||
// ignore-freebsd
|
// ignore-freebsd
|
||||||
|
// ignore-gnu
|
||||||
// ignore-haiku
|
// ignore-haiku
|
||||||
// ignore-ios
|
// ignore-ios
|
||||||
// ignore-linux
|
// ignore-linux
|
||||||
|
// ignore-macos
|
||||||
// ignore-netbsd
|
// ignore-netbsd
|
||||||
// ignore-openbsd
|
// ignore-openbsd
|
||||||
// ignore-solaris
|
// ignore-solaris
|
||||||
// ignore-emscripten
|
|
||||||
|
|
||||||
// aux-build:dummy.rs
|
// aux-build:dummy.rs
|
||||||
// aux-build:wrapper.rs
|
// aux-build:wrapper.rs
|
||||||
|
|
|
@ -13,16 +13,17 @@
|
||||||
// This test is for *-windows-msvc only.
|
// This test is for *-windows-msvc only.
|
||||||
// ignore-android
|
// ignore-android
|
||||||
// ignore-bitrig
|
// ignore-bitrig
|
||||||
// ignore-macos
|
// ignore-cloudabi
|
||||||
// ignore-dragonfly
|
// ignore-dragonfly
|
||||||
|
// ignore-emscripten
|
||||||
// ignore-freebsd
|
// ignore-freebsd
|
||||||
// ignore-haiku
|
// ignore-haiku
|
||||||
// ignore-ios
|
// ignore-ios
|
||||||
// ignore-linux
|
// ignore-linux
|
||||||
|
// ignore-macos
|
||||||
// ignore-netbsd
|
// ignore-netbsd
|
||||||
// ignore-openbsd
|
// ignore-openbsd
|
||||||
// ignore-solaris
|
// ignore-solaris
|
||||||
// ignore-emscripten
|
|
||||||
|
|
||||||
// compile-flags: -C no-prepopulate-passes -C panic=abort -O
|
// compile-flags: -C no-prepopulate-passes -C panic=abort -O
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no std::path
|
||||||
|
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
trait Foo {
|
trait Foo {
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
// error-pattern: crate `cdylib_dep` required to be available in rlib format, but was not found
|
// error-pattern: crate `cdylib_dep` required to be available in rlib format, but was not found
|
||||||
// aux-build:cdylib-dep.rs
|
// aux-build:cdylib-dep.rs
|
||||||
// ignore-musl
|
// ignore-musl
|
||||||
|
// ignore-cloudabi
|
||||||
// ignore-emscripten
|
// ignore-emscripten
|
||||||
|
|
||||||
#![crate_type = "cdylib"]
|
#![crate_type = "cdylib"]
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no std::process
|
||||||
|
|
||||||
fn foo(_: Box<FnMut()>) {}
|
fn foo(_: Box<FnMut()>) {}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// compile-flags: -Z unstable-options --unpretty=mir
|
// compile-flags: -Z unstable-options --unpretty=mir
|
||||||
|
// ignore-cloudabi no std::path
|
||||||
|
|
||||||
use std::path::MAIN_SEPARATOR;
|
use std::path::MAIN_SEPARATOR;
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
// compile-flags:-C panic=abort -C prefer-dynamic
|
// compile-flags:-C panic=abort -C prefer-dynamic
|
||||||
// ignore-musl - no dylibs here
|
// ignore-musl - no dylibs here
|
||||||
|
// ignore-cloudabi
|
||||||
// ignore-emscripten
|
// ignore-emscripten
|
||||||
// error-pattern:`panic_unwind` is not compiled with this crate's panic strategy
|
// error-pattern:`panic_unwind` is not compiled with this crate's panic strategy
|
||||||
|
|
||||||
|
|
|
@ -8,19 +8,20 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// ignore-gnu
|
|
||||||
// ignore-android
|
// ignore-android
|
||||||
// ignore-bitrig
|
// ignore-bitrig
|
||||||
// ignore-macos
|
// ignore-cloudabi
|
||||||
// ignore-dragonfly
|
// ignore-dragonfly
|
||||||
|
// ignore-emscripten
|
||||||
// ignore-freebsd
|
// ignore-freebsd
|
||||||
|
// ignore-gnu
|
||||||
// ignore-haiku
|
// ignore-haiku
|
||||||
// ignore-ios
|
// ignore-ios
|
||||||
// ignore-linux
|
// ignore-linux
|
||||||
|
// ignore-macos
|
||||||
// ignore-netbsd
|
// ignore-netbsd
|
||||||
// ignore-openbsd
|
// ignore-openbsd
|
||||||
// ignore-solaris
|
// ignore-solaris
|
||||||
// ignore-emscripten
|
|
||||||
|
|
||||||
// compile-flags: -Z parse-only
|
// compile-flags: -Z parse-only
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,10 @@
|
||||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// error-pattern:drop 1
|
// error-pattern:drop 1
|
||||||
// error-pattern:drop 2
|
// error-pattern:drop 2
|
||||||
|
// ignore-cloudabi no std::process
|
||||||
|
|
||||||
/// Structure which will not allow to be dropped twice.
|
/// Structure which will not allow to be dropped twice.
|
||||||
struct Droppable<'a>(&'a mut bool, u32);
|
struct Droppable<'a>(&'a mut bool, u32);
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// error-pattern:drop 1
|
// error-pattern:drop 1
|
||||||
|
// ignore-cloudabi no std::process
|
||||||
|
|
||||||
/// Structure which will not allow to be dropped twice.
|
/// Structure which will not allow to be dropped twice.
|
||||||
struct Droppable<'a>(&'a mut bool, u32);
|
struct Droppable<'a>(&'a mut bool, u32);
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// error-pattern:drop 3
|
// error-pattern:drop 3
|
||||||
// error-pattern:drop 2
|
// error-pattern:drop 2
|
||||||
// error-pattern:drop 1
|
// error-pattern:drop 1
|
||||||
|
// ignore-cloudabi no std::process
|
||||||
|
|
||||||
/// Structure which will not allow to be dropped twice.
|
/// Structure which will not allow to be dropped twice.
|
||||||
struct Droppable<'a>(&'a mut bool, u32);
|
struct Droppable<'a>(&'a mut bool, u32);
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
// compile-flags: -Z no-landing-pads -C codegen-units=1
|
// compile-flags: -Z no-landing-pads -C codegen-units=1
|
||||||
// error-pattern:converging_fn called
|
// error-pattern:converging_fn called
|
||||||
|
// ignore-cloudabi no std::process
|
||||||
|
|
||||||
use std::io::{self, Write};
|
use std::io::{self, Write};
|
||||||
|
|
||||||
struct Droppable;
|
struct Droppable;
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
// compile-flags: -Z no-landing-pads -C codegen-units=1
|
// compile-flags: -Z no-landing-pads -C codegen-units=1
|
||||||
// error-pattern:diverging_fn called
|
// error-pattern:diverging_fn called
|
||||||
|
// ignore-cloudabi no std::process
|
||||||
|
|
||||||
use std::io::{self, Write};
|
use std::io::{self, Write};
|
||||||
|
|
||||||
struct Droppable;
|
struct Droppable;
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
// error-pattern:nonzero
|
// error-pattern:nonzero
|
||||||
// exec-env:RUST_NEWRT=1
|
// exec-env:RUST_NEWRT=1
|
||||||
|
// ignore-cloudabi no std::env
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,10 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// no-prefer-dynamic
|
// no-prefer-dynamic
|
||||||
|
// ignore-cloudabi
|
||||||
|
// ignore-emscripten
|
||||||
// ignore-macos this needs valgrind 3.11 or higher; see
|
// ignore-macos this needs valgrind 3.11 or higher; see
|
||||||
// https://github.com/rust-lang/rust/pull/30365#issuecomment-165763679
|
// https://github.com/rust-lang/rust/pull/30365#issuecomment-165763679
|
||||||
// ignore-emscripten
|
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::process::{exit, Command};
|
use std::process::{exit, Command};
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
// Since we mark some ABIs as "nounwind" to LLVM, we must make sure that
|
// Since we mark some ABIs as "nounwind" to LLVM, we must make sure that
|
||||||
// we never unwind through them.
|
// we never unwind through them.
|
||||||
|
|
||||||
|
// ignore-cloudabi no env and process
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
use std::{env, panic};
|
use std::{env, panic};
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no process support
|
||||||
// ignore-emscripten no threads support
|
// ignore-emscripten no threads support
|
||||||
|
|
||||||
use std::{env, fmt, process, sync, thread};
|
use std::{env, fmt, process, sync, thread};
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
// compile-flags:-g -Cllvm-args=-enable-tail-merge=0
|
// compile-flags:-g -Cllvm-args=-enable-tail-merge=0
|
||||||
// ignore-pretty issue #37195
|
// ignore-pretty issue #37195
|
||||||
|
// ignore-cloudabi spawning processes is not supported
|
||||||
// ignore-emscripten spawning processes is not supported
|
// ignore-emscripten spawning processes is not supported
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// ignore-android FIXME #17520
|
// ignore-android FIXME #17520
|
||||||
|
// ignore-cloudabi spawning processes is not supported
|
||||||
// ignore-emscripten spawning processes is not supported
|
// ignore-emscripten spawning processes is not supported
|
||||||
// ignore-openbsd no support for libbacktrace without filename
|
// ignore-openbsd no support for libbacktrace without filename
|
||||||
// compile-flags:-g
|
// compile-flags:-g
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// pretty-expanded FIXME #23616
|
// pretty-expanded FIXME #23616
|
||||||
|
// ignore-cloudabi no target_family
|
||||||
// ignore-wasm32-bare no target_family
|
// ignore-wasm32-bare no target_family
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no target_family
|
||||||
// ignore-wasm32-bare no target_family
|
// ignore-wasm32-bare no target_family
|
||||||
|
|
||||||
// pretty-expanded FIXME #23616
|
// pretty-expanded FIXME #23616
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
// Test that cleanups for the RHS of shortcircuiting operators work.
|
// Test that cleanups for the RHS of shortcircuiting operators work.
|
||||||
|
|
||||||
// pretty-expanded FIXME #23616
|
// pretty-expanded FIXME #23616
|
||||||
|
// ignore-cloudabi no std::env support
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// ignore-windows - this is a unix-specific test
|
// ignore-windows - this is a unix-specific test
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
#![feature(process_exec, libc)]
|
#![feature(process_exec, libc)]
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
// ignore-windows - this is a unix-specific test
|
// ignore-windows - this is a unix-specific test
|
||||||
// ignore-pretty issue #37199
|
// ignore-pretty issue #37199
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
#![feature(process_exec)]
|
#![feature(process_exec)]
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// compile-flags:--test
|
// compile-flags:--test
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
// NB: These tests kill child processes. Valgrind sees these children as leaking
|
// NB: These tests kill child processes. Valgrind sees these children as leaking
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
use std::env::args;
|
use std::env::args;
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
// ignore-android
|
// ignore-android
|
||||||
// ignore-windows
|
// ignore-windows
|
||||||
|
// ignore-cloudabi no execve
|
||||||
// ignore-emscripten no execve
|
// ignore-emscripten no execve
|
||||||
// no-prefer-dynamic
|
// no-prefer-dynamic
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no environment variables present
|
||||||
// ignore-emscripten env vars don't work?
|
// ignore-emscripten env vars don't work?
|
||||||
|
|
||||||
#![feature(path)]
|
#![feature(path)]
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no env vars
|
||||||
// ignore-wasm32-bare no env vars
|
// ignore-wasm32-bare no env vars
|
||||||
|
|
||||||
use std::env::*;
|
use std::env::*;
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// exec-env:TEST_EXEC_ENV=22
|
// exec-env:TEST_EXEC_ENV=22
|
||||||
|
// ignore-cloudabi no env vars
|
||||||
// ignore-emscripten FIXME: issue #31622
|
// ignore-emscripten FIXME: issue #31622
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
// ignore-windows
|
// ignore-windows
|
||||||
// ignore-android
|
// ignore-android
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
// ignore-haiku
|
// ignore-haiku
|
||||||
|
|
||||||
|
|
|
@ -19,14 +19,15 @@ mod rusti {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(target_os = "linux",
|
#[cfg(any(target_os = "cloudabi",
|
||||||
target_os = "macos",
|
|
||||||
target_os = "freebsd",
|
|
||||||
target_os = "dragonfly",
|
target_os = "dragonfly",
|
||||||
|
target_os = "emscripten",
|
||||||
|
target_os = "freebsd",
|
||||||
|
target_os = "linux",
|
||||||
|
target_os = "macos",
|
||||||
target_os = "netbsd",
|
target_os = "netbsd",
|
||||||
target_os = "openbsd",
|
target_os = "openbsd",
|
||||||
target_os = "solaris",
|
target_os = "solaris"))]
|
||||||
target_os = "emscripten"))]
|
|
||||||
mod m {
|
mod m {
|
||||||
#[main]
|
#[main]
|
||||||
#[cfg(target_arch = "x86")]
|
#[cfg(target_arch = "x86")]
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
// Make sure that if a process doesn't have its stdio/stderr descriptors set up
|
// Make sure that if a process doesn't have its stdio/stderr descriptors set up
|
||||||
|
|
|
@ -11,8 +11,9 @@
|
||||||
// aux-build:issue-12133-rlib.rs
|
// aux-build:issue-12133-rlib.rs
|
||||||
// aux-build:issue-12133-dylib.rs
|
// aux-build:issue-12133-dylib.rs
|
||||||
// aux-build:issue-12133-dylib2.rs
|
// aux-build:issue-12133-dylib2.rs
|
||||||
// ignore-musl
|
// ignore-cloudabi no dylib support
|
||||||
// ignore-emscripten no dylib support
|
// ignore-emscripten no dylib support
|
||||||
|
// ignore-musl
|
||||||
|
|
||||||
// pretty-expanded FIXME #23616
|
// pretty-expanded FIXME #23616
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
#![feature(io, process_capture)]
|
#![feature(io, process_capture)]
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
#![feature(io, process_capture)]
|
#![feature(io, process_capture)]
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// pretty-expanded FIXME #23616
|
// pretty-expanded FIXME #23616
|
||||||
|
// ignore-cloudabi no std::fs
|
||||||
|
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::io::{self, BufReader, Read};
|
use std::io::{self, BufReader, Read};
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
#![feature(std_misc, os)]
|
#![feature(std_misc, os)]
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
// had to do with trans ignoring binders.
|
// had to do with trans ignoring binders.
|
||||||
|
|
||||||
// pretty-expanded FIXME #23616
|
// pretty-expanded FIXME #23616
|
||||||
|
// ignore-cloudabi no std::fs
|
||||||
|
|
||||||
#![feature(os)]
|
#![feature(os)]
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no std::fs
|
||||||
|
|
||||||
// Regression test for #20797.
|
// Regression test for #20797.
|
||||||
|
|
||||||
use std::default::Default;
|
use std::default::Default;
|
||||||
|
|
|
@ -34,7 +34,7 @@ mod m {
|
||||||
|
|
||||||
#[link_name = "m"]
|
#[link_name = "m"]
|
||||||
extern {
|
extern {
|
||||||
#[cfg(unix)]
|
#[cfg(any(unix, target_os = "cloudabi"))]
|
||||||
#[link_name="lgamma_r"]
|
#[link_name="lgamma_r"]
|
||||||
pub fn lgamma(n: c_double, sign: &mut c_int) -> c_double;
|
pub fn lgamma(n: c_double, sign: &mut c_int) -> c_double;
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// pretty-expanded FIXME #23616
|
// pretty-expanded FIXME #23616
|
||||||
|
// ignore-cloudabi no std::fs
|
||||||
|
|
||||||
#![feature(fs, net)]
|
#![feature(fs, net)]
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no std::path
|
||||||
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no std::path
|
||||||
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no threads
|
// ignore-emscripten no threads
|
||||||
|
|
||||||
use std::thread;
|
use std::thread;
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no std::env
|
||||||
// ignore-wasm32 issue 42629
|
// ignore-wasm32 issue 42629
|
||||||
|
|
||||||
#[inline(never)]
|
#[inline(never)]
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
// Previously libstd would set stdio descriptors of a child process
|
// Previously libstd would set stdio descriptors of a child process
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
use std::process::{Command, Stdio};
|
use std::process::{Command, Stdio};
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no std::env
|
||||||
|
|
||||||
fn parse_args() -> String {
|
fn parse_args() -> String {
|
||||||
let args: Vec<_> = ::std::env::args().collect();
|
let args: Vec<_> = ::std::env::args().collect();
|
||||||
let mut n = 0;
|
let mut n = 0;
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// pretty-expanded FIXME #23616
|
// pretty-expanded FIXME #23616
|
||||||
|
// ignore-cloudabi no std::env
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
|
|
|
@ -10,11 +10,11 @@
|
||||||
|
|
||||||
// compile-flags:--test -g
|
// compile-flags:--test -g
|
||||||
|
|
||||||
use std::{env, panic, fs};
|
|
||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
#[test]
|
#[test]
|
||||||
fn simple_test() {
|
fn simple_test() {
|
||||||
|
use std::{env, panic, fs};
|
||||||
|
|
||||||
// Find our dSYM and replace the DWARF binary with an empty file
|
// Find our dSYM and replace the DWARF binary with an empty file
|
||||||
let mut dsym_path = env::current_exe().unwrap();
|
let mut dsym_path = env::current_exe().unwrap();
|
||||||
let executable_name = dsym_path.file_name().unwrap().to_str().unwrap().to_string();
|
let executable_name = dsym_path.file_name().unwrap().to_str().unwrap().to_string();
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
fn check_for_no_backtrace(test: std::process::Output) {
|
fn check_for_no_backtrace(test: std::process::Output) {
|
||||||
|
|
|
@ -8,8 +8,9 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// ignore-emscripten no processes
|
|
||||||
// ignore-android
|
// ignore-android
|
||||||
|
// ignore-cloudabi no processes
|
||||||
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
#![feature(libc)]
|
#![feature(libc)]
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
// ignore-android: FIXME (#20004)
|
// ignore-android: FIXME (#20004)
|
||||||
// ignore-musl
|
// ignore-musl
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
#![feature(asm)]
|
#![feature(asm)]
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
// compile-flags:-C panic=abort
|
// compile-flags:-C panic=abort
|
||||||
// aux-build:exit-success-if-unwind.rs
|
// aux-build:exit-success-if-unwind.rs
|
||||||
// no-prefer-dynamic
|
// no-prefer-dynamic
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
extern crate exit_success_if_unwind;
|
extern crate exit_success_if_unwind;
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
// compile-flags:-C panic=abort
|
// compile-flags:-C panic=abort
|
||||||
// no-prefer-dynamic
|
// no-prefer-dynamic
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
// compile-flags:-C lto -C panic=abort
|
// compile-flags:-C lto -C panic=abort
|
||||||
// no-prefer-dynamic
|
// no-prefer-dynamic
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
// compile-flags:-C lto -C panic=unwind
|
// compile-flags:-C lto -C panic=unwind
|
||||||
// no-prefer-dynamic
|
// no-prefer-dynamic
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no files or I/O
|
||||||
// ignore-wasm32-bare no files or I/O
|
// ignore-wasm32-bare no files or I/O
|
||||||
|
|
||||||
use std::fs;
|
use std::fs;
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi spawning processes is not supported
|
||||||
// ignore-emscripten spawning processes is not supported
|
// ignore-emscripten spawning processes is not supported
|
||||||
|
|
||||||
use std::{env, process};
|
use std::{env, process};
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
// (instead of running forever), and that it does not print an error
|
// (instead of running forever), and that it does not print an error
|
||||||
// message about a broken pipe.
|
// message about a broken pipe.
|
||||||
|
|
||||||
|
// ignore-cloudabi no subprocesses support
|
||||||
// ignore-emscripten no threads support
|
// ignore-emscripten no threads support
|
||||||
|
|
||||||
use std::process;
|
use std::process;
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
// non-ASCII characters. The child process ensures all the strings are
|
// non-ASCII characters. The child process ensures all the strings are
|
||||||
// intact.
|
// intact.
|
||||||
|
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
use std::io::prelude::*;
|
use std::io::prelude::*;
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
|
@ -38,14 +38,15 @@ struct Outer {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[cfg(any(target_os = "linux",
|
#[cfg(any(target_os = "cloudabi",
|
||||||
target_os = "macos",
|
|
||||||
target_os = "freebsd",
|
|
||||||
target_os = "dragonfly",
|
target_os = "dragonfly",
|
||||||
|
target_os = "emscripten",
|
||||||
|
target_os = "freebsd",
|
||||||
|
target_os = "linux",
|
||||||
|
target_os = "macos",
|
||||||
target_os = "netbsd",
|
target_os = "netbsd",
|
||||||
target_os = "openbsd",
|
target_os = "openbsd",
|
||||||
target_os = "solaris",
|
target_os = "solaris"))]
|
||||||
target_os = "emscripten"))]
|
|
||||||
mod m {
|
mod m {
|
||||||
#[cfg(target_arch = "x86")]
|
#[cfg(target_arch = "x86")]
|
||||||
pub mod m {
|
pub mod m {
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi stdout does not map to file descriptor 1 by default
|
||||||
// ignore-wasm32-bare no libc
|
// ignore-wasm32-bare no libc
|
||||||
|
|
||||||
#![feature(libc)]
|
#![feature(libc)]
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi spawning processes is not supported
|
||||||
// ignore-emscripten spawning processes is not supported
|
// ignore-emscripten spawning processes is not supported
|
||||||
|
|
||||||
#![feature(start)]
|
#![feature(start)]
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi can't run commands
|
||||||
// ignore-emscripten can't run commands
|
// ignore-emscripten can't run commands
|
||||||
|
|
||||||
#![feature(libc)]
|
#![feature(libc)]
|
||||||
|
|
|
@ -12,8 +12,9 @@
|
||||||
// main thread exit while still being in use by signal handlers. This test
|
// main thread exit while still being in use by signal handlers. This test
|
||||||
// triggers this situation by sending signal from atexit handler.
|
// triggers this situation by sending signal from atexit handler.
|
||||||
//
|
//
|
||||||
// ignore-windows
|
// ignore-cloudabi no signal handling support
|
||||||
// ignore-wasm32-bare no libc
|
// ignore-wasm32-bare no libc
|
||||||
|
// ignore-windows
|
||||||
|
|
||||||
#![feature(libc)]
|
#![feature(libc)]
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
|
|
|
@ -8,8 +8,9 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// ignore-windows
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
// ignore-windows
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
// Be sure that when a SIGPIPE would have been received that the entire process
|
// 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.
|
// doesn't die in a ball of fire, but rather it's gracefully handled.
|
||||||
|
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// min-llvm-version 4.0
|
// min-llvm-version 4.0
|
||||||
|
// ignore-cloudabi no std::env
|
||||||
|
|
||||||
#![feature(cfg_target_feature)]
|
#![feature(cfg_target_feature)]
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
// ignore-arm
|
// ignore-arm
|
||||||
// ignore-aarch64
|
// ignore-aarch64
|
||||||
// ignore-wasm
|
// ignore-wasm
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
// ignore-musl FIXME #31506
|
// ignore-musl FIXME #31506
|
||||||
// ignore-pretty
|
// ignore-pretty
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
// ignore-arm
|
// ignore-arm
|
||||||
// ignore-aarch64
|
// ignore-aarch64
|
||||||
// ignore-wasm
|
// ignore-wasm
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
// ignore-musl FIXME #31506
|
// ignore-musl FIXME #31506
|
||||||
// no-system-llvm
|
// no-system-llvm
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi networking not available
|
||||||
// ignore-wasm32-bare networking not available
|
// ignore-wasm32-bare networking not available
|
||||||
|
|
||||||
#![feature(lookup_host)]
|
#![feature(lookup_host)]
|
||||||
|
|
|
@ -10,9 +10,10 @@
|
||||||
|
|
||||||
// ignore-android needs extra network permissions
|
// ignore-android needs extra network permissions
|
||||||
// ignore-bitrig system ulimit (Too many open files)
|
// 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-netbsd system ulimit (Too many open files)
|
||||||
// ignore-openbsd 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::io::prelude::*;
|
||||||
use std::net::{TcpListener, TcpStream};
|
use std::net::{TcpListener, TcpStream};
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no std::fs
|
||||||
|
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::io::{Read, self};
|
use std::io::{Read, self};
|
||||||
use std::num::ParseIntError;
|
use std::num::ParseIntError;
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
#![feature(process_try_wait)]
|
#![feature(process_try_wait)]
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no processes
|
||||||
// ignore-emscripten no processes
|
// ignore-emscripten no processes
|
||||||
|
|
||||||
#![feature(libc)]
|
#![feature(libc)]
|
||||||
|
|
|
@ -17,14 +17,11 @@
|
||||||
// Note that this is disabled on unix as processes exiting with 259 will have
|
// 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).
|
// their exit status truncated to 3 (only the lower 8 bits are used).
|
||||||
|
|
||||||
|
#[cfg(windows)]
|
||||||
|
fn main() {
|
||||||
use std::process::{self, Command};
|
use std::process::{self, Command};
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
fn main() {
|
|
||||||
if !cfg!(windows) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if env::args().len() == 1 {
|
if env::args().len() == 1 {
|
||||||
let status = Command::new(env::current_exe().unwrap())
|
let status = Command::new(env::current_exe().unwrap())
|
||||||
.arg("foo")
|
.arg("foo")
|
||||||
|
@ -35,3 +32,6 @@ fn main() {
|
||||||
process::exit(259);
|
process::exit(259);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(windows))]
|
||||||
|
fn main() {}
|
||||||
|
|
|
@ -32,14 +32,15 @@ pub fn main() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(target_os = "macos",
|
#[cfg(any(target_os = "android",
|
||||||
target_os = "linux",
|
|
||||||
target_os = "freebsd",
|
|
||||||
target_os = "dragonfly",
|
|
||||||
target_os = "bitrig",
|
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 = "netbsd",
|
||||||
target_os = "openbsd",
|
target_os = "openbsd",
|
||||||
target_os = "android",
|
target_os = "solaris"))]
|
||||||
target_os = "solaris",
|
|
||||||
target_os = "emscripten"))]
|
|
||||||
pub fn main() { }
|
pub fn main() { }
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no std::fs support
|
||||||
|
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
#![deny(unused_imports)]
|
#![deny(unused_imports)]
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi
|
||||||
// compile-flags: --error-format pretty-json -Zunstable-options
|
// compile-flags: --error-format pretty-json -Zunstable-options
|
||||||
|
|
||||||
// The output for humans should just highlight the whole span without showing
|
// The output for humans should just highlight the whole span without showing
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no std::env support
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
pub struct Foo {
|
pub struct Foo {
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// 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
|
// Test that we do some basic error correcton in the tokeniser (and don't spew
|
||||||
// too many bogus errors).
|
// too many bogus errors).
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no std::path support
|
||||||
|
|
||||||
macro_rules! y {
|
macro_rules! y {
|
||||||
() => {}
|
() => {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no std::net support
|
||||||
|
|
||||||
use std::net::TcpListener;
|
use std::net::TcpListener;
|
||||||
use std::net::TcpStream;
|
use std::net::TcpStream;
|
||||||
use std::io::{self, Read, Write};
|
use std::io::{self, Read, Write};
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-cloudabi no std::fs support
|
||||||
|
|
||||||
#![feature(try_trait)]
|
#![feature(try_trait)]
|
||||||
|
|
||||||
use std::ops::Try;
|
use std::ops::Try;
|
||||||
|
|
Loading…
Reference in New Issue