FIN: disable backtrace printing for panic-runtime/abort* on ARM

This commit is contained in:
Tim Neumann 2017-04-02 11:24:22 +02:00
parent a0ce63be2b
commit a146431e4c
2 changed files with 21 additions and 2 deletions

View File

@ -27,7 +27,17 @@ fn main() {
exit_success_if_unwind::bar(do_panic);
}
}
let s = Command::new(env::args_os().next().unwrap()).arg("foo").status();
let mut cmd = Command::new(env::args_os().next().unwrap());
cmd.arg("foo");
// ARMv6 hanges while printing the backtrace, see #41004
if cfg!(target_arch = "arm") && cfg!(target_env = "gnu") {
cmd.env("RUST_BACKTRACE", "0");
}
let s = cmd.status();
assert!(s.unwrap().code() != Some(0));
}

View File

@ -35,6 +35,15 @@ fn main() {
panic!("try to catch me");
}
}
let s = Command::new(env::args_os().next().unwrap()).arg("foo").status();
let mut cmd = Command::new(env::args_os().next().unwrap());
cmd.arg("foo");
// ARMv6 hanges while printing the backtrace, see #41004
if cfg!(target_arch = "arm") && cfg!(target_env = "gnu") {
cmd.env("RUST_BACKTRACE", "0");
}
let s = cmd.status();
assert!(s.unwrap().code() != Some(0));
}