File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ extension XCTestCase {
165
165
166
166
/// The path to the INPUTS directory of shared test projects.
167
167
public static var sklspInputsDirectory : URL = {
168
+ #if os(macOS)
168
169
// FIXME: Use Bundle.module.resourceURL once the fix for SR-12912 is released.
169
170
var resources = XCTestCase . productsDirectory
170
171
. appendingPathComponent ( " SourceKitLSP_SKTestSupport.bundle " )
@@ -175,6 +176,10 @@ extension XCTestCase {
175
176
resources. deleteLastPathComponent ( )
176
177
resources. deleteLastPathComponent ( )
177
178
}
179
+ #else
180
+ let resources = XCTestCase . productsDirectory
181
+ . appendingPathComponent ( " SourceKitLSP_SKTestSupport.resources " )
182
+ #endif
178
183
guard FileManager . default. fileExists ( atPath: resources. path) else {
179
184
fatalError ( " missing resources \( resources. path) " )
180
185
}
You can’t perform that action at this time.
0 commit comments