File tree 1 file changed +3
-14
lines changed
tests/run-make/compressed-debuginfo
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 .
2
2
3
3
//@ only-linux
4
4
//@ ignore-cross-compile
5
5
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} ;
9
7
10
8
fn check_compression ( compression : & str , to_find : & str ) {
11
9
run_in_tmpdir ( || {
@@ -17,19 +15,10 @@ fn check_compression(compression: &str, to_find: &str) {
17
15
. arg ( & format ! ( "-Zdebuginfo-compression={compression}" ) )
18
16
. input ( "foo.rs" )
19
17
. 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) ;
29
19
} ) ;
30
20
}
31
21
32
22
fn main ( ) {
33
23
check_compression ( "zlib" , "ZLIB" ) ;
34
- check_compression ( "zstd" , "ZSTD" ) ;
35
24
}
You can’t perform that action at this time.
0 commit comments