File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ final class SnippetDocumentationGenerationTests: ConcurrencyRequiringTestCase {
44
44
}
45
45
46
46
func testPreviewDocumentationWithSnippets( ) throws {
47
+ #if os(macOS)
48
+ throw XCTSkip ( " Skipping integration tests due to rdar://134406349 " )
49
+ #else
47
50
let outputDirectory = try temporaryDirectory ( ) . appendingPathComponent ( " output " )
48
51
49
52
let port = try getAvailablePort ( )
@@ -102,5 +105,6 @@ final class SnippetDocumentationGenerationTests: ConcurrencyRequiringTestCase {
102
105
103
106
// Send an interrupt to the SwiftPM parent process
104
107
process. interrupt ( )
108
+ #endif
105
109
}
106
110
}
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ import XCTest
11
11
12
12
final class SwiftDocCPreview : ConcurrencyRequiringTestCase {
13
13
func testRunPreviewServerOnSamePortRepeatedly( ) throws {
14
+ #if os(macOS)
15
+ throw XCTSkip ( " Skipping integration tests due to rdar://134406349 " )
16
+ #else
14
17
// Because only a single server can bind to a given port at a time,
15
18
// this test ensures that the preview server running in the `docc`
16
19
// process exits when the an interrupt is sent to the `SwiftPM` process.
@@ -110,5 +113,6 @@ final class SwiftDocCPreview: ConcurrencyRequiringTestCase {
110
113
// Send an interrupt to the SwiftPM parent process
111
114
process. interrupt ( )
112
115
}
116
+ #endif
113
117
}
114
118
}
Original file line number Diff line number Diff line change @@ -96,15 +96,20 @@ extension XCTestCase {
96
96
}
97
97
98
98
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) ?? " "
101
101
102
+
103
+ if process. terminationStatus != 0 , standardErrorString. contains ( " <unknown>:0: error: unknown argument: " ) {
104
+ throw XCTSkip ( " Skipping integration tests due to rdar://134406349 " )
105
+ }
106
+
102
107
return SwiftInvocationResult (
103
108
workingDirectory: directoryURL,
104
109
swiftExecutable: try swiftExecutableURL,
105
110
arguments: arguments. map ( \. description) ,
106
- standardOutput: standardOutputString ?? " " ,
107
- standardError: standardErrorString ?? " " ,
111
+ standardOutput: standardOutputString ,
112
+ standardError: standardErrorString,
108
113
exitStatus: Int ( process. terminationStatus)
109
114
)
110
115
}
You can’t perform that action at this time.
0 commit comments