File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
IntegrationTests/Tests/Utility Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -96,15 +96,19 @@ extension XCTestCase {
9696 }
9797
9898 return try processQueue. sync {
99- let standardOutputString = String ( data: standardOutputData, encoding: . utf8)
100- let standardErrorString = String ( data: standardErrorData, encoding: . utf8)
99+ let standardOutputString = String ( data: standardOutputData, encoding: . utf8) ?? " "
100+ let standardErrorString = String ( data: standardErrorData, encoding: . utf8) ?? " "
101101
102+ if process. terminationStatus != 0 , standardErrorString. contains ( " <unknown>:0: error: unknown argument: \' -rpath \' " ) {
103+ throw XCTSkip ( " Skipping integration tests due to rdar://134406349 " )
104+ }
105+
102106 return SwiftInvocationResult (
103107 workingDirectory: directoryURL,
104108 swiftExecutable: try swiftExecutableURL,
105109 arguments: arguments. map ( \. description) ,
106- standardOutput: standardOutputString ?? " " ,
107- standardError: standardErrorString ?? " " ,
110+ standardOutput: standardOutputString ,
111+ standardError: standardErrorString,
108112 exitStatus: Int ( process. terminationStatus)
109113 )
110114 }
You can’t perform that action at this time.
0 commit comments