]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/panic-runtime/abort.rs
2 #![allow(unused_variables)]
3 // compile-flags:-C panic=abort
5 // ignore-emscripten no processes
6 // ignore-sgx no processes
9 use std
::process
::Command
;
16 std
::process
::exit(0);
21 let mut args
= env
::args_os();
22 let me
= args
.next().unwrap();
24 if let Some(s
) = args
.next() {
29 panic
!("try to catch me");
33 let mut cmd
= Command
::new(env
::args_os().next().unwrap());
36 // ARMv6 hanges while printing the backtrace, see #41004
37 if cfg
!(target_arch
= "arm") && cfg
!(target_env
= "gnu") {
38 cmd
.env("RUST_BACKTRACE", "0");
42 assert
!(s
.unwrap().code() != Some(0));