@@ -145,25 +145,25 @@ class OutOfProcessReferenceResolverTests: XCTestCase {
145
145
#if os(macOS)
146
146
throw XCTSkip ( " This test is flaky (rdar://91678333) " )
147
147
148
- try assertResolvesTopicLink ( makeResolver: { testMetadata in
149
- let temporaryFolder = try createTemporaryDirectory ( )
150
- let executableLocation = temporaryFolder. appendingPathComponent ( " link-resolver-executable " )
151
-
152
- let encodedMetadata = try String ( data: JSONEncoder ( ) . encode ( testMetadata) , encoding: . utf8) !
153
-
154
- try """
155
- #!/bin/bash
156
- echo '{ " bundleIdentifier " : " com.test.bundle " }' # Write this resolver's bundle identifier
157
- read # Wait for docc to send a topic URL
158
- echo '{ " resolvedInformation " : \( encodedMetadata) }' # Respond with the test metadata (above)
159
- """ . write ( to: executableLocation, atomically: true , encoding: . utf8)
160
-
161
- // `0o0700` is `-rwx------` (read, write, & execute only for owner)
162
- try FileManager . default. setAttributes ( [ . posixPermissions: 0o0700 ] , ofItemAtPath: executableLocation. path)
163
- XCTAssert ( FileManager . default. isExecutableFile ( atPath: executableLocation. path) )
164
-
165
- return try OutOfProcessReferenceResolver ( processLocation: executableLocation, errorOutputHandler: { _ in } )
166
- } )
148
+ // try assertResolvesTopicLink(makeResolver: { testMetadata in
149
+ // let temporaryFolder = try createTemporaryDirectory()
150
+ // let executableLocation = temporaryFolder.appendingPathComponent("link-resolver-executable")
151
+ //
152
+ // let encodedMetadata = try String(data: JSONEncoder().encode(testMetadata), encoding: .utf8)!
153
+ //
154
+ // try """
155
+ // #!/bin/bash
156
+ // echo '{"bundleIdentifier":"com.test.bundle"}' # Write this resolver's bundle identifier
157
+ // read # Wait for docc to send a topic URL
158
+ // echo '{"resolvedInformation":\(encodedMetadata)}' # Respond with the test metadata (above)
159
+ // """.write(to: executableLocation, atomically: true, encoding: .utf8)
160
+ //
161
+ // // `0o0700` is `-rwx------` (read, write, & execute only for owner)
162
+ // try FileManager.default.setAttributes([.posixPermissions: 0o0700], ofItemAtPath: executableLocation.path)
163
+ // XCTAssert(FileManager.default.isExecutableFile(atPath: executableLocation.path))
164
+ //
165
+ // return try OutOfProcessReferenceResolver(processLocation: executableLocation, errorOutputHandler: { _ in })
166
+ // })
167
167
168
168
#endif
169
169
}
0 commit comments