File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed
tests/run-make/rust-lld-compress-debug-sections Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change 1
1
// Checks the `compress-debug-sections` option on rust-lld.
2
2
3
3
//@ needs-rust-lld
4
+ //@ needs-llvm-zstd
4
5
//@ only-linux
5
6
//@ ignore-cross-compile
6
7
7
8
// FIXME: This test isn't comprehensive and isn't covering all possible combinations.
8
9
9
- use run_make_support:: { assert_contains , llvm_readobj, run_in_tmpdir, rustc} ;
10
+ use run_make_support:: { llvm_readobj, run_in_tmpdir, rustc} ;
10
11
11
12
fn check_compression ( compression : & str , to_find : & str ) {
12
13
run_in_tmpdir ( || {
@@ -17,19 +18,8 @@ fn check_compression(compression: &str, to_find: &str) {
17
18
. arg ( "-Cdebuginfo=full" )
18
19
. link_arg ( & format ! ( "-Wl,--compress-debug-sections={compression}" ) )
19
20
. input ( "main.rs" )
20
- . run_unchecked ( ) ;
21
- let stderr = out. stderr_utf8 ( ) ;
22
- if stderr. is_empty ( ) {
23
- llvm_readobj ( ) . arg ( "-t" ) . arg ( "main" ) . run ( ) . assert_stdout_contains ( to_find) ;
24
- } else {
25
- assert_contains (
26
- stderr,
27
- format ! (
28
- "LLVM was not built with LLVM_ENABLE_{to_find} \
29
- or did not find {compression} at build time"
30
- ) ,
31
- ) ;
32
- }
21
+ . run ( ) ;
22
+ llvm_readobj ( ) . arg ( "-t" ) . arg ( "main" ) . run ( ) . assert_stdout_contains ( to_find) ;
33
23
} ) ;
34
24
}
35
25
You can’t perform that action at this time.
0 commit comments