Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2ef2699

Browse files
committedJun 29, 2024
Refactor compressed-debuginfo to use llvm_readobj
1 parent 0c1df37 commit 2ef2699

File tree

1 file changed

+2
-3
lines changed
  • tests/run-make/compressed-debuginfo

1 file changed

+2
-3
lines changed
 

‎tests/run-make/compressed-debuginfo/rmake.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// FIXME: This test isn't comprehensive and isn't covering all possible combinations.
77

8-
use run_make_support::{assert_contains, cmd, run_in_tmpdir, rustc};
8+
use run_make_support::{assert_contains, cmd, llvm_readobj, run_in_tmpdir, rustc};
99

1010
fn check_compression(compression: &str, to_find: &str) {
1111
run_in_tmpdir(|| {
@@ -19,8 +19,7 @@ fn check_compression(compression: &str, to_find: &str) {
1919
.run();
2020
let stderr = out.stderr_utf8();
2121
if stderr.is_empty() {
22-
// FIXME: `readelf` might need to be replaced with `llvm-readelf`.
23-
cmd("readelf").arg("-t").arg("foo.o").run().assert_stdout_contains(to_find);
22+
llvm_readobj().arg("-t").arg("foo.o").run().assert_stdout_contains(to_find);
2423
} else {
2524
assert_contains(
2625
&stderr,

0 commit comments

Comments
 (0)
Failed to load comments.