]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/backtrace-apple-no-dsymutil.rs
3 // compile-flags:-g -Csplit-debuginfo=unpacked
8 use std
::process
::Command
;
13 let args
: Vec
<String
> = std
::env
::args().collect();
15 println
!("{}", std
::backtrace
::Backtrace
::force_capture());
18 let out
= Command
::new(&args
[0]).env("RUST_BACKTRACE", "1").arg("foo").output().unwrap();
21 str::from_utf8(&out
.stdout
).unwrap(),
22 str::from_utf8(&out
.stderr
).unwrap(),
24 if out
.status
.success() && output
.contains(file
!()) {
27 println
!("status: {}", out
.status
);
28 println
!("child output:\n\t{}", output
.replace("\n", "\n\t"));
29 panic
!("failed to find {:?} in output", file
!());