Skip to content

Commit 02f27c0

Browse files
committed
[SourceKit/CursorInfo] Enable passing .swiftsourceinfo test
use-swift-source-info.swift is checking that the .swiftsourceinfo file is being used when OptimizedForIDE is false by checking the location output from a cursor info request. It also checks that the module name is there, which it should be the result is in a different file. There was previously a bug where it *wasn't* added when a location was added (which was valid before .swiftsourceinfo was used). The test has always worked since it was modified in the fix to that bug, but some weirdness caused the change and test to be out of sync (possibly the result of merges between main and next branches). The new line is the language, which was added after it was disabled (and hence missed being updated).
1 parent cb6b1ea commit 02f27c0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/SourceKit/CursorInfo/use-swift-source-info.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ func bar() {
33
foo()
44
}
55

6-
// FIXME: Rmove REQUIRES rdar://problem/60096971
7-
// REQUIRES: rdar60096971
8-
96
// RUN: %empty-directory(%t)
107
// RUN: echo "/// Some doc" >> %t/Foo.swift
118
// RUN: echo "public func foo() { }" >> %t/Foo.swift
@@ -27,6 +24,7 @@ func bar() {
2724
// WITHOUT: source.lang.swift.ref.function.free ()
2825
// BOTH: foo()
2926
// BOTH-NEXT: s:3Foo3fooyyF
27+
// BOTH-NEXT: source.lang.swift
3028
// BOTH-NEXT: () -> ()
3129
// BOTH-NEXT: $syycD
3230
// BOTH-NEXT: Foo

0 commit comments

Comments
 (0)