File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed
tests/run-make/compressed-debuginfo Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change 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, llvm_readobj, run_in_tmpdir, rustc} ;
6+ use run_make_support:: { llvm_readobj, run_in_tmpdir, rustc} ;
97
108fn 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
3222fn main ( ) {
3323 check_compression ( "zlib" , "ZLIB" ) ;
34- check_compression ( "zstd" , "ZSTD" ) ;
3524}
You can’t perform that action at this time.
0 commit comments