FIN: disable backtrace printing for panic-runtime/abort* on ARM
This commit is contained in:
parent
a0ce63be2b
commit
a146431e4c
@ -27,7 +27,17 @@ fn main() {
|
|||||||
exit_success_if_unwind::bar(do_panic);
|
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));
|
assert!(s.unwrap().code() != Some(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,6 +35,15 @@ fn main() {
|
|||||||
panic!("try to catch me");
|
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));
|
assert!(s.unwrap().code() != Some(0));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user