From d828bb30bb9596253397d40908df7c94c651383f Mon Sep 17 00:00:00 2001 From: Alex Hoppen Date: Wed, 3 Jul 2024 09:55:15 +0200 Subject: [PATCH] Skip `testFreestandingMacroExpansion` if host toolchain does not support background indexing --- Tests/SourceKitLSPTests/ExecuteCommandTests.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/SourceKitLSPTests/ExecuteCommandTests.swift b/Tests/SourceKitLSPTests/ExecuteCommandTests.swift index 490e6c4c4..2eb35908e 100644 --- a/Tests/SourceKitLSPTests/ExecuteCommandTests.swift +++ b/Tests/SourceKitLSPTests/ExecuteCommandTests.swift @@ -140,6 +140,7 @@ final class ExecuteCommandTests: XCTestCase { func testFreestandingMacroExpansion() async throws { try await SkipUnless.canBuildMacroUsingSwiftSyntaxFromSourceKitLSPBuild() + try await SkipUnless.swiftPMSupportsExperimentalPrepareForIndexing() let options = SourceKitLSPOptions.testDefault(experimentalFeatures: [.showMacroExpansions])