Skip to content

Commit 1f26730

Browse files
committed
Fix test failure on beta channel
1 parent b8946bb commit 1f26730

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/correctness.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ fn zero_function() {
5252
let path = std::env::current_exe().unwrap();
5353
let ctx = Loader::new(&path).unwrap();
5454
for probe in 0..10 {
55-
assert!(ctx.find_frames(probe).unwrap().count().unwrap() < 10);
55+
// Test that we aren't finding large numbers of functions all at
56+
// low addresses. We do need to allow for a large amount of
57+
// inlined functions, so we allow for 20 frames.
58+
assert!(ctx.find_frames(probe).unwrap().count().unwrap() < 20);
5659
}
5760
}

0 commit comments

Comments
 (0)