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 @@ -287,6 +287,7 @@ extension XCTestCase {
287
287
/// The path to the INPUTS directory of shared test projects.
288
288
public static var isdbInputsDirectory : URL = {
289
289
// FIXME: Use Bundle.module.resourceURL once the fix for SR-12912 is released.
290
+ #if os(macOS)
290
291
var resources = XCTestCase . productsDirectory
291
292
. appendingPathComponent ( " IndexStoreDB_ISDBTestSupport.bundle " )
292
293
. appendingPathComponent ( " Contents " )
@@ -296,6 +297,10 @@ extension XCTestCase {
296
297
resources. deleteLastPathComponent ( )
297
298
resources. deleteLastPathComponent ( )
298
299
}
300
+ #else
301
+ let resources = XCTestCase . productsDirectory
302
+ . appendingPathComponent ( " IndexStoreDB_ISDBTestSupport.resources " )
303
+ #endif
299
304
guard FileManager . default. fileExists ( atPath: resources. path) else {
300
305
fatalError ( " missing resources \( resources. path) " )
301
306
}
You can’t perform that action at this time.
0 commit comments