Skip to content

Commit 20840c4

Browse files
committed
Skip testImportPreparedModuleWithFunctionBodiesSkipped if toolchain doesn’t support rename
The test uses rename and should thus be skipped if sourcekitd doesn’t support rename.
1 parent 045024d commit 20840c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tests/SourceKitLSPTests/BackgroundIndexingTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,7 @@ final class BackgroundIndexingTests: XCTestCase {
889889
}
890890

891891
func testImportPreparedModuleWithFunctionBodiesSkipped() async throws {
892+
try await SkipUnless.sourcekitdSupportsRename()
892893
// This test case was crashing the indexing compiler invocation for Client if Lib was built for index preparation
893894
// (using `-enable-library-evolution -experimental-skip-all-function-bodies -experimental-lazy-typecheck`) but x
894895
// Client was not indexed with `-experimental-allow-module-with-compiler-errors`. rdar://129071600

0 commit comments

Comments
 (0)