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 @@ -168,6 +168,12 @@ impl CompletedProcess {
168
168
String :: from_utf8 ( self . output . stdout . clone ( ) ) . expect ( "stdout is not valid UTF-8" )
169
169
}
170
170
171
+ #[ must_use]
172
+ #[ track_caller]
173
+ pub fn invalid_stdout_utf8 ( & self ) -> String {
174
+ String :: from_utf8_lossy ( & self . output . stdout . clone ( ) ) . to_string ( )
175
+ }
176
+
171
177
#[ must_use]
172
178
#[ track_caller]
173
179
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