Skip to content

Commit 3b2160e

Browse files
committed
Poll index in testBuildSystemUsesStandardizedFileUrlsInsteadOfRealpath
We need to make sure that all unit files are read into indexstore-db so that we know about the unit file that allows us to map from header to main file. Fixes rdar://146392120
1 parent 375f9e5 commit 3b2160e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tests/SourceKitLSPTests/WorkspaceTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,6 +1368,7 @@ final class WorkspaceTests: XCTestCase {
13681368
options: .testDefault(experimentalFeatures: [.sourceKitOptionsRequest]),
13691369
workspaceFolders: [WorkspaceFolder(uri: DocumentURI(scratchDirectory), name: nil)]
13701370
)
1371+
try await testClient.send(PollIndexRequest())
13711372

13721373
// Check that we can infer build settings for the header from its main file. indexstore-db stores this main file
13731374
// path as `/private/tmp` while the build system only knows about it as `/tmp`.

0 commit comments

Comments
 (0)