From 515f3cd5464f60554079a1b32ff586157603857c Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Fri, 8 Dec 2023 21:29:55 +0000 Subject: [PATCH] test(trim-paths): don't follow links to separate debuginfo files --- tests/testsuite/profile_trim_paths.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/testsuite/profile_trim_paths.rs b/tests/testsuite/profile_trim_paths.rs index c3bb121da44b..8a883a004bf2 100644 --- a/tests/testsuite/profile_trim_paths.rs +++ b/tests/testsuite/profile_trim_paths.rs @@ -487,7 +487,8 @@ mod object_works { fn inspect_debuginfo(path: &std::path::Path) -> Vec { std::process::Command::new("readelf") - .arg("-wi") + .arg("--debug-dump=info") + .arg("--debug-dump=no-follow-links") // older version can't recognized but just a warning .arg(path) .output() .expect("readelf works")