Skip to content

Commit 9c1f9c7

Browse files
committed
[test] Fix resource directory on Linux
1 parent 8633898 commit 9c1f9c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/ISDBTestSupport/TibsTestWorkspace.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ extension XCTestCase {
287287
/// The path to the INPUTS directory of shared test projects.
288288
public static var isdbInputsDirectory: URL = {
289289
// FIXME: Use Bundle.module.resourceURL once the fix for SR-12912 is released.
290+
#if os(macOS)
290291
var resources = XCTestCase.productsDirectory
291292
.appendingPathComponent("IndexStoreDB_ISDBTestSupport.bundle")
292293
.appendingPathComponent("Contents")
@@ -296,6 +297,10 @@ extension XCTestCase {
296297
resources.deleteLastPathComponent()
297298
resources.deleteLastPathComponent()
298299
}
300+
#else
301+
let resources = XCTestCase.productsDirectory
302+
.appendingPathComponent("IndexStoreDB_ISDBTestSupport.resources")
303+
#endif
299304
guard FileManager.default.fileExists(atPath: resources.path) else {
300305
fatalError("missing resources \(resources.path)")
301306
}

0 commit comments

Comments
 (0)