2 // compile-flags: --test -Cpanic=abort -Zpanic_abort_tests
3 // run-flags: --test-threads=1
6 // exec-env:RUST_BACKTRACE=0
8 // ignore-wasm no panic or subprocess support
9 // ignore-emscripten no panic or subprocess support
29 println!("hello, world");
30 writeln!(std::io::stdout(), "testing123").unwrap();
31 writeln!(std::io::stderr(), "testing321").unwrap();
37 std::process::exit(123);
41 fn no_residual_environment() {
42 for (key, _) in env::vars() {
43 // Look for keys like __RUST_TEST_INVOKE.
44 if key.contains("TEST_INVOKE") {
45 panic!("shouldn't have '{}' in environment", key);