Skip to content

Commit 368e25e

Browse files
committed
[sourcekit] Fix tests that depend on accepting frontend arguments
These tests were relying on sourcekitd parsing as frontend instead of using the driver. Update them now to avoid churn when we fix command line argument parsing in sourcekit. The changes from clang-importer-sdk to clang-importer-sdk-nosource -I %t are because clang-importer-sdk implies using -enable-source-import. Rather than hack them up to use -Xfrontend, it is cleaner to just stop using source import at all for these tests. Incidentally, this improved fidelity in a few places. When using the generated swift modules we also need to pass a target triple to sourcekit, which exposed some tests that had mac-specific data. This is a systemic issue for sourcekit tests, but for now just make those few specific tests that we had problems with run only on mac.
1 parent 9f3df20 commit 368e25e

23 files changed

+140
-63
lines changed

test/SourceKit/CodeComplete/complete_crash1.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// XFAIL: broken_std_regex
2-
// RUN: %complete-test -tok=TOK1 -hide-none %s -- %s
2+
// RUN: %complete-test -tok=TOK1 -hide-none %s
33

44
import QuartzCore
55

test/SourceKit/CodeComplete/complete_import_module_flag.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// XFAIL: broken_std_regex
22
// RUN: %empty-directory(%t)
33
// RUN: %swift -Xcc -I%S/Inputs -emit-module -o %t/auxiliary_file.swiftmodule %S/Inputs/auxiliary_file.swift
4-
// RUN: %complete-test -group=none -hide-none -raw -tok=TOP_LEVEL_0 %s -- -import-module auxiliary_file -I %t -I %S/Inputs | %FileCheck %s
5-
// RUN: %complete-test -group=none -tok=TOP_LEVEL_0 %s -- -import-module auxiliary_file -I %t -I %S/Inputs | %FileCheck %s -check-prefix=WITH_HIDING
4+
// RUN: %complete-test -group=none -hide-none -raw -tok=TOP_LEVEL_0 %s -- -Xfrontend -import-module -Xfrontend auxiliary_file -I %t -I %S/Inputs | %FileCheck %s
5+
// RUN: %complete-test -group=none -tok=TOP_LEVEL_0 %s -- -Xfrontend -import-module -Xfrontend auxiliary_file -I %t -I %S/Inputs | %FileCheck %s -check-prefix=WITH_HIDING
66

77
func fromMainModule() {}
88
func test() {

test/SourceKit/CursorInfo/cursor_info_async.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@ import Foo
22

33
// REQUIRES: objc_interop
44

5+
// RUN: %empty-directory(%t)
6+
// RUN: %build-clang-importer-objc-overlays
7+
58
// Perform 8 concurrent cursor infos, which is often enough to cause
69
// contention. We disable printing the requests to minimize delay.
710

811
// RUN: %sourcekitd-test -req=interface-gen-open -module Foo -- \
9-
// RUN: -F %S/../Inputs/libIDE-mock-sdk %mcp_opt %clang-importer-sdk \
12+
// RUN: -F %S/../Inputs/libIDE-mock-sdk %mcp_opt \
13+
// RUN: -target %target-triple %clang-importer-sdk-nosource -I %t \
1014
// RUN: == -async -dont-print-request -req=cursor -pos=60:15 \
1115
// RUN: == -async -dont-print-request -req=cursor -pos=60:15 \
1216
// RUN: == -async -dont-print-request -req=cursor -pos=60:15 \

test/SourceKit/CursorInfo/cursor_stdlib.swift

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,47 +22,53 @@ import Swift
2222
func foo3(a: Float, b: Bool) {}
2323

2424
// REQUIRES: objc_interop
25-
// RUN: %sourcekitd-test -req=cursor -pos=3:18 %s -- %s %mcp_opt %clang-importer-sdk | %FileCheck -check-prefix=CHECK-OVERLAY %s
25+
26+
// RUN: %empty-directory(%t)
27+
// RUN: %build-clang-importer-objc-overlays
28+
29+
// RUN: %sourcekitd-test -req=cursor -pos=3:18 %s -- %s %mcp_opt -target %target-triple %clang-importer-sdk-nosource -I %t | %FileCheck -check-prefix=CHECK-OVERLAY %s
2630
// CHECK-OVERLAY: source.lang.swift.ref.var.global
2731
// CHECK-OVERLAY-NEXT: NSUTF8StringEncoding
2832
// CHECK-OVERLAY-NEXT: s:10Foundation20NSUTF8StringEncodingSuv
2933
// CHECK-OVERLAY-NEXT: UInt
3034
// CHECK-OVERLAY-NEXT: $SSuD
31-
// CHECK-OVERLAY-NEXT: <Declaration>public let NSUTF8StringEncoding: <Type usr="s:Su">UInt</Type></Declaration>
35+
// CHECK-OVERLAY-NEXT: Foundation
36+
// CHECK-OVERLAY-NEXT: SYSTEM
37+
// CHECK-OVERLAY-NEXT: <Declaration>let NSUTF8StringEncoding: <Type usr="s:Su">UInt</Type></Declaration>
3238

33-
// RUN: %sourcekitd-test -req=cursor -pos=5:13 %s -- %s %mcp_opt %clang-importer-sdk | %FileCheck -check-prefix=CHECK-ITERATOR %s
39+
// RUN: %sourcekitd-test -req=cursor -pos=5:13 %s -- %s %mcp_opt -target %target-triple %clang-importer-sdk-nosource -I %t | %FileCheck -check-prefix=CHECK-ITERATOR %s
3440
// CHECK-ITERATOR-NOT: _AnyIteratorBase
3541
// CHECK-ITERATOR: <Group>Collection/Type-erased</Group>
3642

37-
// RUN: %sourcekitd-test -req=cursor -pos=8:10 %s -- %s %mcp_opt %clang-importer-sdk | %FileCheck -check-prefix=CHECK-REPLACEMENT1 %s
43+
// RUN: %sourcekitd-test -req=cursor -pos=8:10 %s -- %s %mcp_opt -target %target-triple %clang-importer-sdk-nosource -I %t | %FileCheck -check-prefix=CHECK-REPLACEMENT1 %s
3844
// CHECK-REPLACEMENT1: <Group>Collection/Array</Group>
3945
// CHECK-REPLACEMENT1: <Declaration>{{.*}}func sorted() -&gt; [<Type usr="s:Si">Int</Type>]</Declaration>
4046
// CHECK-REPLACEMENT1: RELATED BEGIN
4147
// CHECK-REPLACEMENT1: sorted(by:)</RelatedName>
4248
// CHECK-REPLACEMENT1: RELATED END
4349

44-
// RUN: %sourcekitd-test -req=cursor -pos=9:8 %s -- %s %mcp_opt %clang-importer-sdk | %FileCheck -check-prefix=CHECK-REPLACEMENT2 %s
50+
// RUN: %sourcekitd-test -req=cursor -pos=9:8 %s -- %s %mcp_opt -target %target-triple %clang-importer-sdk-nosource -I %t | %FileCheck -check-prefix=CHECK-REPLACEMENT2 %s
4551
// CHECK-REPLACEMENT2: <Group>Collection/Array</Group>
4652
// CHECK-REPLACEMENT2: <Declaration>{{.*}}mutating func append(_ newElement: <Type usr="s:Si">Int</Type>)</Declaration>
4753

48-
// RUN: %sourcekitd-test -req=cursor -pos=15:10 %s -- %s %mcp_opt %clang-importer-sdk | %FileCheck -check-prefix=CHECK-REPLACEMENT3 %s
54+
// RUN: %sourcekitd-test -req=cursor -pos=15:10 %s -- %s %mcp_opt -target %target-triple %clang-importer-sdk-nosource -I %t | %FileCheck -check-prefix=CHECK-REPLACEMENT3 %s
4955
// CHECK-REPLACEMENT3: <Group>Collection/Array</Group>
5056
// CHECK-REPLACEMENT3: func sorted(by areInIncreasingOrder: (<Type usr="s:13cursor_stdlib2S1V">S1</Type>
5157
// CHECK-REPLACEMENT3: sorted()</RelatedName>
5258

53-
// RUN: %sourcekitd-test -req=cursor -pos=18:8 %s -- %s %mcp_opt %clang-importer-sdk | %FileCheck -check-prefix=CHECK-REPLACEMENT4 %s
59+
// RUN: %sourcekitd-test -req=cursor -pos=18:8 %s -- %s %mcp_opt -target %target-triple %clang-importer-sdk-nosource -I %t | %FileCheck -check-prefix=CHECK-REPLACEMENT4 %s
5460
// CHECK-REPLACEMENT4: <Group>Collection/Array</Group>
5561
// CHECK-REPLACEMENT4: <Declaration>{{.*}}mutating func append(_ newElement: <Type usr="s:13cursor_stdlib2S1V">S1</Type>)</Declaration>
5662

57-
// RUN: %sourcekitd-test -req=cursor -pos=21:10 %s -- %s %mcp_opt %clang-importer-sdk | %FileCheck -check-prefix=CHECK-MODULE-GROUP1 %s
63+
// RUN: %sourcekitd-test -req=cursor -pos=21:10 %s -- %s %mcp_opt -target %target-triple %clang-importer-sdk-nosource -I %t | %FileCheck -check-prefix=CHECK-MODULE-GROUP1 %s
5864
// CHECK-MODULE-GROUP1: MODULE GROUPS BEGIN
5965
// CHECK-MODULE-GROUP1-DAG: Math
6066
// CHECK-MODULE-GROUP1-DAG: Collection
6167
// CHECK-MODULE-GROUP1-DAG: Collection/Array
6268
// CHECK-MODULE-GROUP1: MODULE GROUPS END
6369

64-
// RUN: %sourcekitd-test -req=cursor -pos=22:17 %s -- %s %mcp_opt %clang-importer-sdk | %FileCheck -check-prefix=CHECK-FLOAT1 %s
70+
// RUN: %sourcekitd-test -req=cursor -pos=22:17 %s -- %s %mcp_opt -target %target-triple %clang-importer-sdk-nosource -I %t | %FileCheck -check-prefix=CHECK-FLOAT1 %s
6571
// CHECK-FLOAT1: s:Sf
6672

67-
// RUN: %sourcekitd-test -req=cursor -pos=22:25 %s -- %s %mcp_opt %clang-importer-sdk | %FileCheck -check-prefix=CHECK-BOOL1 %s
73+
// RUN: %sourcekitd-test -req=cursor -pos=22:25 %s -- %s %mcp_opt -target %target-triple %clang-importer-sdk-nosource -I %t | %FileCheck -check-prefix=CHECK-BOOL1 %s
6874
// CHECK-BOOL1: s:Sb

test/SourceKit/CursorInfo/rdar_18677108-2.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// RUN: %sourcekitd-test -req=open %S/Inputs/rdar_18677108-2-a.swift \
22
// RUN: -- %S/Inputs/rdar_18677108-2-b.swift \
33
// RUN: %S/Inputs/rdar_18677108-2-a.swift \
4-
// RUN: -primary-file %S/Inputs/rdar_18677108-2-a.swift \
54
// RUN: == -req=print-diags %S/Inputs/rdar_18677108-2-a.swift | %sed_clean > %t.response
65
// RUN: diff -u %s.response %t.response
76

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
// REQUIRES: objc_interop
2+
3+
// FIXME: the test output we're comparing to is specific to macOS.
4+
// REQUIRES-ANY: OS=macosx
5+
6+
// RUN: %empty-directory(%t)
7+
// RUN: %build-clang-importer-objc-overlays
8+
29
// RUN: %sourcekitd-test -req=doc-info -module Foo -- -F %S/../Inputs/libIDE-mock-sdk \
3-
// RUN: %mcp_opt %clang-importer-sdk | %sed_clean > %t.response
10+
// RUN: %mcp_opt -target %target-triple %clang-importer-sdk-nosource -I %t | %sed_clean > %t.response
411
// RUN: diff -u %s.response %t.response

test/SourceKit/Indexing/index.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// integer protocols
33
// XFAIL: *
44

5-
// RUN: %sourcekitd-test -req=index %s -- -serialize-diagnostics-path %t.dia %s | %sed_clean > %t.response
5+
// RUN: %sourcekitd-test -req=index %s -- -Xfrontend -serialize-diagnostics-path -Xfrontend %t.dia %s | %sed_clean > %t.response
66
// RUN: diff -u %s.response %t.response
77

88
var globV: Int

test/SourceKit/Indexing/index_bad_modulename.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
// RUN: %sourcekitd-test -req=index %s -- %s -module-name Swift %mcp_opt %clang-importer-sdk | %sed_clean > %t.response1
1+
// RUN: %empty-directory(%t)
2+
// RUN: %build-clang-importer-objc-overlays
3+
// RUN: %sourcekitd-test -req=index %s -- %s -module-name Swift %mcp_opt -target %target-triple %clang-importer-sdk-nosource -I %t | %sed_clean > %t.response1
24
// RUN: diff -u %s.response %t.response1
3-
// RUN: %sourcekitd-test -req=index %s -- %s -module-name 12345 %mcp_opt %clang-importer-sdk | %sed_clean > %t.response2
5+
// RUN: %sourcekitd-test -req=index %s -- %s -module-name 12345 %mcp_opt -target %target-triple %clang-importer-sdk-nosource -I %t | %sed_clean > %t.response2
46
// RUN: diff -u %s.response %t.response2
57

68
import ObjectiveC

test/SourceKit/Indexing/index_bad_modulename.swift.response

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,63 @@
77
key.filepath: Swift.swiftmodule,
88
key.hash: <hash>,
99
key.is_system: 1
10+
},
11+
{
12+
key.kind: source.lang.swift.import.module.swift,
13+
key.name: "ObjectiveC",
14+
key.filepath: ObjectiveC.swiftmodule,
15+
key.hash: <hash>,
16+
key.is_system: 1,
17+
key.dependencies: [
18+
{
19+
key.kind: source.lang.swift.import.module.clang,
20+
key.name: "ObjectiveC",
21+
key.filepath: ObjectiveC.pcm,
22+
key.is_system: 1
23+
},
24+
{
25+
key.kind: source.lang.swift.import.module.swift,
26+
key.name: "Swift",
27+
key.filepath: Swift.swiftmodule,
28+
key.hash: <hash>,
29+
key.is_system: 1
30+
},
31+
{
32+
key.kind: source.lang.swift.import.module.swift,
33+
key.name: "SwiftOnoneSupport",
34+
key.filepath: SwiftOnoneSupport.swiftmodule,
35+
key.hash: <hash>,
36+
key.dependencies: [
37+
{
38+
key.kind: source.lang.swift.import.module.swift,
39+
key.name: "Swift",
40+
key.filepath: Swift.swiftmodule,
41+
key.hash: <hash>,
42+
key.is_system: 1
43+
}
44+
]
45+
}
46+
]
1047
}
1148
],
1249
key.entities: [
1350
{
1451
key.kind: source.lang.swift.decl.var.global,
1552
key.name: "v",
1653
key.usr: "s:4main1vSo8NSObjectCSgvp",
17-
key.line: 7,
54+
key.line: 9,
1855
key.column: 5,
1956
key.entities: [
2057
{
2158
key.kind: source.lang.swift.decl.function.accessor.getter,
2259
key.usr: "s:4main1vSo8NSObjectCSgvg",
23-
key.line: 7,
60+
key.line: 9,
2461
key.column: 5
2562
},
2663
{
2764
key.kind: source.lang.swift.decl.function.accessor.setter,
2865
key.usr: "s:4main1vSo8NSObjectCSgvs",
29-
key.line: 7,
66+
key.line: 9,
3067
key.column: 5
3168
}
3269
]
@@ -35,7 +72,7 @@
3572
key.kind: source.lang.swift.ref.class,
3673
key.name: "NSObject",
3774
key.usr: "c:objc(cs)NSObject",
38-
key.line: 7,
75+
key.line: 9,
3976
key.column: 8
4077
}
4178
]

test/SourceKit/Indexing/index_constructors.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %sourcekitd-test -req=index %s -- %s %S/Inputs/index_constructors_other.swift | %sed_clean > %t.response
1+
// RUN: %sourcekitd-test -req=index %s -- %s %S/Inputs/index_constructors_other.swift -module-name index_constructors | %sed_clean > %t.response
22
// RUN: diff -u %s.response %t.response
33

44
import Foundation

test/SourceKit/Indexing/index_enum_case.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %sourcekitd-test -req=index %s -- -serialize-diagnostics-path %t.dia %s | %sed_clean > %t.response
1+
// RUN: %sourcekitd-test -req=index %s -- -Xfrontend -serialize-diagnostics-path -Xfrontend %t.dia %s | %sed_clean > %t.response
22
// RUN: diff -u %s.response %t.response
33

44
public enum E {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// RUN: %sourcekitd-test -req=index %S/../Inputs/forbid_typecheck_primary.swift -- -Xfrontend -debug-forbid-typecheck-prefix -Xfrontend NOTYPECHECK %S/../Inputs/forbid_typecheck_2.swift %S/../Inputs/forbid_typecheck_primary.swift | %sed_clean > %t.response
1+
// RUN: %sourcekitd-test -req=index %S/../Inputs/forbid_typecheck_primary.swift -- -Xfrontend -debug-forbid-typecheck-prefix -Xfrontend NOTYPECHECK %S/../Inputs/forbid_typecheck_2.swift %S/../Inputs/forbid_typecheck_primary.swift -module-name forbid_typecheck | %sed_clean > %t.response
22
// RUN: diff -u %s.response %t.response

test/SourceKit/Indexing/index_forbid_typecheck.swift.response

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@
1313
{
1414
key.kind: source.lang.swift.decl.var.global,
1515
key.name: "globalPrim",
16-
key.usr: "s:18forbid_typecheck_210globalPrimSivp",
16+
key.usr: "s:16forbid_typecheck10globalPrimSivp",
1717
key.line: 1,
1818
key.column: 5,
1919
key.entities: [
2020
{
2121
key.kind: source.lang.swift.decl.function.accessor.getter,
22-
key.usr: "s:18forbid_typecheck_210globalPrimSivg",
22+
key.usr: "s:16forbid_typecheck10globalPrimSivg",
2323
key.line: 1,
2424
key.column: 5
2525
},
2626
{
2727
key.kind: source.lang.swift.decl.function.accessor.setter,
28-
key.usr: "s:18forbid_typecheck_210globalPrimSivs",
28+
key.usr: "s:16forbid_typecheck10globalPrimSivs",
2929
key.line: 1,
3030
key.column: 5
3131
}
@@ -34,13 +34,13 @@
3434
{
3535
key.kind: source.lang.swift.ref.var.global,
3636
key.name: "globalSec",
37-
key.usr: "s:18forbid_typecheck_29globalSecSivp",
37+
key.usr: "s:16forbid_typecheck9globalSecSivp",
3838
key.line: 1,
3939
key.column: 18,
4040
key.entities: [
4141
{
4242
key.kind: source.lang.swift.ref.function.accessor.getter,
43-
key.usr: "s:18forbid_typecheck_29globalSecSivg",
43+
key.usr: "s:16forbid_typecheck9globalSecSivg",
4444
key.line: 1,
4545
key.column: 18
4646
}
@@ -49,44 +49,44 @@
4949
{
5050
key.kind: source.lang.swift.decl.function.free,
5151
key.name: "primFn()",
52-
key.usr: "s:18forbid_typecheck_26primFnyyF",
52+
key.usr: "s:16forbid_typecheck6primFnyyF",
5353
key.line: 3,
5454
key.column: 6,
5555
key.entities: [
5656
{
5757
key.kind: source.lang.swift.ref.function.free,
5858
key.name: "secFn()",
59-
key.usr: "s:18forbid_typecheck_25secFnyyF",
59+
key.usr: "s:16forbid_typecheck5secFnyyF",
6060
key.line: 4,
6161
key.column: 3
6262
},
6363
{
6464
key.kind: source.lang.swift.ref.class,
6565
key.name: "ClsSec",
66-
key.usr: "s:18forbid_typecheck_26ClsSecC",
66+
key.usr: "s:16forbid_typecheck6ClsSecC",
6767
key.line: 5,
6868
key.column: 11
6969
},
7070
{
7171
key.kind: source.lang.swift.ref.function.constructor,
7272
key.name: "init()",
73-
key.usr: "s:18forbid_typecheck_26ClsSecCACycfc",
73+
key.usr: "s:16forbid_typecheck6ClsSecCACycfc",
7474
key.line: 5,
7575
key.column: 11
7676
},
7777
{
7878
key.kind: source.lang.swift.ref.var.instance,
7979
key.name: "member",
80-
key.usr: "s:18forbid_typecheck_26ClsSecC6memberSivp",
80+
key.usr: "s:16forbid_typecheck6ClsSecC6memberSivp",
8181
key.line: 5,
8282
key.column: 20,
8383
key.entities: [
8484
{
8585
key.kind: source.lang.swift.ref.function.accessor.getter,
86-
key.usr: "s:18forbid_typecheck_26ClsSecC6memberSivg",
86+
key.usr: "s:16forbid_typecheck6ClsSecC6memberSivg",
8787
key.line: 5,
8888
key.column: 20,
89-
key.receiver_usr: "s:18forbid_typecheck_26ClsSecC",
89+
key.receiver_usr: "s:16forbid_typecheck6ClsSecC",
9090
key.is_dynamic: 1
9191
}
9292
]

test/SourceKit/Indexing/index_is_test_candidate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %sourcekitd-test -req=index %s -- -serialize-diagnostics-path %t.dia %s | %sed_clean > %t.response
1+
// RUN: %sourcekitd-test -req=index %s -- -Xfrontend -serialize-diagnostics-path -Xfrontend %t.dia %s | %sed_clean > %t.response
22
// RUN: diff -u %s.response %t.response
33

44
// This test verifies that, when Objective-C interop is disabled, private

test/SourceKit/Indexing/index_is_test_candidate_objc.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %sourcekitd-test -req=index %s -- -serialize-diagnostics-path %t.dia %s | %sed_clean > %t.response
1+
// RUN: %sourcekitd-test -req=index %s -- -Xfrontend -serialize-diagnostics-path -Xfrontend %t.dia %s | %sed_clean > %t.response
22
// RUN: diff -u %s.response %t.response
33

44
// This test verifies that, when Objective-C interop is enabled, all "test

test/SourceKit/Indexing/index_with_clang_module.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
// REQUIRES: objc_interop
2+
3+
// RUN: %empty-directory(%t)
4+
// RUN: %build-clang-importer-objc-overlays
5+
26
// RUN: %sourcekitd-test -req=index %s -- %s -F %S/../Inputs/libIDE-mock-sdk \
3-
// RUN: %mcp_opt %clang-importer-sdk | %FileCheck %s
7+
// RUN: %mcp_opt -target %target-triple %clang-importer-sdk-nosource -I %t | %FileCheck %s
48

59
import Foo
610

test/SourceKit/Indexing/rdar_21602898.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %sourcekitd-test -req=index %s -- -serialize-diagnostics-path %t.dia %s | %sed_clean > %t.response
1+
// RUN: %sourcekitd-test -req=index %s -- -Xfrontend -serialize-diagnostics-path -Xfrontend %t.dia %s | %sed_clean > %t.response
22
// RUN: diff -u %s.response %t.response
33

44
protocol P {}

test/SourceKit/Indexing/sr_3815.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %sourcekitd-test -req=index %s -- -serialize-diagnostics-path %t.dia %s | %sed_clean > %t.response
1+
// RUN: %sourcekitd-test -req=index %s -- -Xfrontend -serialize-diagnostics-path -Xfrontend %t.dia %s | %sed_clean > %t.response
22
// RUN: diff -u %s.response %t.response
33

44
protocol P {

0 commit comments

Comments
 (0)