File tree 2 files changed +7
-1
lines changed
src/tools/run-make-support/src
tests/run-make/symbol-visibility
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,12 @@ impl CompletedProcess {
167
167
String :: from_utf8 ( self . output . stdout . clone ( ) ) . expect ( "stdout is not valid UTF-8" )
168
168
}
169
169
170
+ #[ must_use]
171
+ #[ track_caller]
172
+ pub fn invalid_stdout_utf8 ( & self ) -> String {
173
+ String :: from_utf8_lossy ( & self . output . stdout . clone ( ) ) . to_string ( )
174
+ }
175
+
170
176
#[ must_use]
171
177
#[ track_caller]
172
178
pub fn stderr_utf8 ( & self ) -> String {
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ fn main() {
142
142
143
143
#[ track_caller]
144
144
fn symbols_check ( path : & str , symbol_check_type : SymbolCheckType , exists_once : bool ) {
145
- let out = llvm_readobj ( ) . arg ( "--dyn-symbols" ) . input ( path) . run ( ) . stdout_utf8 ( ) ;
145
+ let out = llvm_readobj ( ) . arg ( "--dyn-symbols" ) . input ( path) . run ( ) . invalid_stdout_utf8 ( ) ;
146
146
assert_eq ! (
147
147
out. lines( )
148
148
. filter( |& line| !line. contains( "__imp_" ) && has_symbol( line, symbol_check_type) )
You can’t perform that action at this time.
0 commit comments