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 {
928
928
let ( _, stderrThread) = _stdlib_thread_create_block ( {
929
929
while !self . _childStderr. isEOF {
930
930
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
+ }
932
935
var done : Bool
933
936
( done: done, ( ) ) = onStderrLine ( line)
934
937
if done { return }
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ OptionalTraps.test("UnwrapNone/location")
36
36
{ _isFastAssertConfiguration ( ) } ,
37
37
reason: " this trap is not guaranteed to happen in -Ounchecked " ) )
38
38
. crashOutputMatches ( _isDebugAssertConfiguration ( )
39
- ? " test/stdlib/ OptionalTraps.swift, line 45"
39
+ ? " OptionalTraps.swift, line 45 "
40
40
: " " )
41
41
. code {
42
42
expectCrashLater ( )
You can’t perform that action at this time.
0 commit comments