File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
stdlib/private/StdlibUnittest Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -928,7 +928,10 @@ class _ParentProcess {
928928 let ( _, stderrThread) = _stdlib_thread_create_block ( {
929929 while !self . _childStderr. isEOF {
930930 self . _childStderr. read ( )
931- while let line = self . _childStderr. getline ( ) {
931+ while var line = self . _childStderr. getline ( ) {
932+ if let cr = line. firstIndex ( of: " \r " ) {
933+ line. remove ( at: cr)
934+ }
932935 var done : Bool
933936 ( done: done, ( ) ) = onStderrLine ( line)
934937 if done { return }
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ OptionalTraps.test("UnwrapNone/location")
3636 { _isFastAssertConfiguration ( ) } ,
3737 reason: " this trap is not guaranteed to happen in -Ounchecked " ) )
3838 . crashOutputMatches ( _isDebugAssertConfiguration ( )
39- ? " test/stdlib/ OptionalTraps.swift, line 45"
39+ ? " OptionalTraps.swift, line 45 "
4040 : " " )
4141 . code {
4242 expectCrashLater ( )
You can’t perform that action at this time.
0 commit comments