Skip to content

Commit 4a2c0d8

Browse files
committed
make compressed-debuginfo test about zlib only
zlib is seemingly always enabled, so we can test it unconditionally
1 parent ccd9784 commit 4a2c0d8

File tree

1 file changed

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

1 file changed

+3
-14
lines changed
+3-14
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
// Checks the `debuginfo-compression` option.
1+
// Checks the always enabled `debuginfo-compression` option: zlib.
22

33
//@ only-linux
44
//@ ignore-cross-compile
55

6-
// FIXME: This test isn't comprehensive and isn't covering all possible combinations.
7-
8-
use run_make_support::{assert_contains, cmd, llvm_readobj, run_in_tmpdir, rustc};
6+
use run_make_support::{llvm_readobj, run_in_tmpdir, rustc};
97

108
fn check_compression(compression: &str, to_find: &str) {
119
run_in_tmpdir(|| {
@@ -17,19 +15,10 @@ fn check_compression(compression: &str, to_find: &str) {
1715
.arg(&format!("-Zdebuginfo-compression={compression}"))
1816
.input("foo.rs")
1917
.run();
20-
let stderr = out.stderr_utf8();
21-
if stderr.is_empty() {
22-
llvm_readobj().arg("-t").arg("foo.o").run().assert_stdout_contains(to_find);
23-
} else {
24-
assert_contains(
25-
stderr,
26-
format!("unknown debuginfo compression algorithm {compression}"),
27-
);
28-
}
18+
llvm_readobj().arg("-t").arg("foo.o").run().assert_stdout_contains(to_find);
2919
});
3020
}
3121

3222
fn main() {
3323
check_compression("zlib", "ZLIB");
34-
check_compression("zstd", "ZSTD");
3524
}

0 commit comments

Comments
 (0)