We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8946bb commit 1f26730Copy full SHA for 1f26730
tests/correctness.rs
@@ -52,6 +52,9 @@ fn zero_function() {
52
let path = std::env::current_exe().unwrap();
53
let ctx = Loader::new(&path).unwrap();
54
for probe in 0..10 {
55
- assert!(ctx.find_frames(probe).unwrap().count().unwrap() < 10);
+ // 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);
59
}
60
0 commit comments