diff options
| author | Jerry Wang <jerrylwang123@gmail.com> | 2024-06-23 17:44:58 -0400 |
|---|---|---|
| committer | Jerry Wang <jerrylwang123@gmail.com> | 2024-06-29 08:14:56 -0400 |
| commit | 2ef269953a99182db6d6ca9901c566eaab15d471 (patch) | |
| tree | f2092928086378c954242d109b16beca317be749 | |
| parent | 0c1df370caf489a38e8d263bb9a72565fd3ab718 (diff) | |
| download | rust-2ef269953a99182db6d6ca9901c566eaab15d471.tar.gz rust-2ef269953a99182db6d6ca9901c566eaab15d471.zip | |
Refactor `compressed-debuginfo` to use `llvm_readobj`
| -rw-r--r-- | tests/run-make/compressed-debuginfo/rmake.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/run-make/compressed-debuginfo/rmake.rs b/tests/run-make/compressed-debuginfo/rmake.rs index 9c6d50ab243..37002c672d8 100644 --- a/tests/run-make/compressed-debuginfo/rmake.rs +++ b/tests/run-make/compressed-debuginfo/rmake.rs @@ -5,7 +5,7 @@ // FIXME: This test isn't comprehensive and isn't covering all possible combinations. -use run_make_support::{assert_contains, cmd, run_in_tmpdir, rustc}; +use run_make_support::{assert_contains, cmd, llvm_readobj, run_in_tmpdir, rustc}; fn check_compression(compression: &str, to_find: &str) { run_in_tmpdir(|| { @@ -19,8 +19,7 @@ fn check_compression(compression: &str, to_find: &str) { .run(); let stderr = out.stderr_utf8(); if stderr.is_empty() { - // FIXME: `readelf` might need to be replaced with `llvm-readelf`. - cmd("readelf").arg("-t").arg("foo.o").run().assert_stdout_contains(to_find); + llvm_readobj().arg("-t").arg("foo.o").run().assert_stdout_contains(to_find); } else { assert_contains( &stderr, |
