Skip to content

Commit fcd4221

Browse files
committed
test(trim-paths): don't follow links to separate debuginfo files
For refeference: https://sourceware.org/binutils/docs/binutils/readelf.html
1 parent bb86adf commit fcd4221

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/testsuite/profile_trim_paths.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,8 @@ mod object_works {
487487

488488
fn inspect_debuginfo(path: &std::path::Path) -> Vec<u8> {
489489
std::process::Command::new("readelf")
490-
.arg("-wi")
490+
.arg("--debug-dump=info")
491+
.arg("--debug-dump=no-follow-links") // older version can't recognized but just a warning
491492
.arg(path)
492493
.output()
493494
.expect("readelf works")

0 commit comments

Comments
 (0)