Skip to content

Commit

Permalink
Fix correctness test
Browse files Browse the repository at this point in the history
  • Loading branch information
philipc committed Mar 1, 2019
1 parent 313c7ff commit ee6030a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions unwind/tests/correctness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@ fn test_frame_3() {
let bt = backtrace::Backtrace::new_unresolved();
let ref_trace: Vec<u64> = bt.frames().iter().map(|x| x.ip() as u64).collect();

let ref_trace = &ref_trace[5..]; // skip 5 (backtrace-rs internals)
let ref_trace = &ref_trace[6..]; // skip 6 (backtrace-rs internals)

for i in ref_trace {
println!("{:08x}", i);
}
println!();

DwarfUnwinder::default().trace(move |frames| {
// skip 2 (unwind-rs + test_frame_3)
// skip 3 (unwind-rs + test_frame_3)
frames.next().unwrap();
frames.next().unwrap();
frames.next().unwrap();

Expand Down

0 comments on commit ee6030a

Please sign in to comment.