Skip to content

Commit a763252

Browse files
committed
[test] Fix resource directory on Linux
1 parent 283e6b8 commit a763252

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/SKTestSupport/SKTibsTestWorkspace.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ extension XCTestCase {
165165

166166
/// The path to the INPUTS directory of shared test projects.
167167
public static var sklspInputsDirectory: URL = {
168+
#if os(macOS)
168169
// FIXME: Use Bundle.module.resourceURL once the fix for SR-12912 is released.
169170
var resources = XCTestCase.productsDirectory
170171
.appendingPathComponent("SourceKitLSP_SKTestSupport.bundle")
@@ -175,6 +176,10 @@ extension XCTestCase {
175176
resources.deleteLastPathComponent()
176177
resources.deleteLastPathComponent()
177178
}
179+
#else
180+
let resources = XCTestCase.productsDirectory
181+
.appendingPathComponent("SourceKitLSP_SKTestSupport.resources")
182+
#endif
178183
guard FileManager.default.fileExists(atPath: resources.path) else {
179184
fatalError("missing resources \(resources.path)")
180185
}

0 commit comments

Comments
 (0)