We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c14673 + f68a777 commit 5e9a1b5Copy full SHA for 5e9a1b5
Tests/SwiftDriverTests/ParsableMessageTests.swift
@@ -14,6 +14,7 @@ import TSCBasic
14
15
@_spi(Testing) import SwiftDriver
16
import var Foundation.EXIT_SUCCESS
17
+import class Foundation.NSString
18
19
@discardableResult
20
internal func withHijackedErrorStream(
@@ -26,7 +27,7 @@ internal func withHijackedErrorStream(
26
27
TSCBasic.stderrStream = try ThreadSafeOutputByteStream(LocalFileOutputByteStream(file.path))
28
try body()
29
TSCBasic.stderrStream.flush()
- output = try localFileSystem.readFileContents(file.path).description
30
+ output = try "\(localFileSystem.readFileContents(file.path))".replacingOccurrences(of: "\r\n", with: "\n")
31
}
32
// Restore the error stream to what it was
33
TSCBasic.stderrStream = errorStream
0 commit comments