File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/tools/run-make-support/src
tests/run-make/symbol-visibility Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,12 @@ impl CompletedProcess {
168168 String :: from_utf8 ( self . output . stdout . clone ( ) ) . expect ( "stdout is not valid UTF-8" )
169169 }
170170
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+
171177 #[ must_use]
172178 #[ track_caller]
173179 pub fn stderr_utf8 ( & self ) -> String {
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ fn main() {
142142
143143#[ track_caller]
144144fn 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 ( ) ;
146146 assert_eq ! (
147147 out. lines( )
148148 . filter( |& line| !line. contains( "__imp_" ) && has_symbol( line, symbol_check_type) )
You can’t perform that action at this time.
0 commit comments