Gbp-Pq: Name u-workaround-testfailure-armhf_01.patch
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));
}
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));
}