Skip to content

Commit 2cc3a27

Browse files
committed
[test] Add -target %target-triple to sourcekitd-test invocation
1 parent b4c2249 commit 2cc3a27

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/SourceKit/CursorInfo/cursor_user_module_group.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %empty-directory(%t.mod)
22
// RUN: %target-swift-frontend -module-name MyModule -emit-module -emit-module-path %t.mod/MyModule.swiftmodule -emit-module-doc -emit-module-doc-path %t.mod/MyModule.swiftdoc -group-info-path %S/Inputs/group.json %S/Inputs/FooSwiftModule.swift
33

4-
// RUN: %sourcekitd-test -req=cursor -pos=7:10 %s -- %s -I %t.mod | %FileCheck -check-prefix=CHECK %s
4+
// RUN: %sourcekitd-test -req=cursor -pos=7:10 %s -- %s -I %t.mod -target %target-triple | %FileCheck -check-prefix=CHECK %s
55

66
import MyModule
77
_ = fooSwiftFunc()

test/SourceKit/InterfaceGen/gen_module_group.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %empty-directory(%t.mod)
22
// RUN: %target-swift-frontend -module-name MyModule -emit-module -emit-module-path %t.mod/MyModule.swiftmodule -emit-module-doc -emit-module-doc-path %t.mod/MyModule.swiftdoc -group-info-path %S/Inputs/group.json %S/Inputs/swift_mod.swift %S/Inputs/swift_mod_syn.swift
3-
// RUN: %sourcekitd-test -req=interface-gen -module MyModule -group-name A -- -I %t.mod | %FileCheck -check-prefix=GROUPA %s
4-
// RUN: %sourcekitd-test -req=interface-gen -module MyModule -group-name B -- -I %t.mod | %FileCheck -check-prefix=GROUPB %s
3+
// RUN: %sourcekitd-test -req=interface-gen -module MyModule -group-name A -- -I %t.mod -target %target-triple | %FileCheck -check-prefix=GROUPA %s
4+
// RUN: %sourcekitd-test -req=interface-gen -module MyModule -group-name B -- -I %t.mod -target %target-triple | %FileCheck -check-prefix=GROUPB %s
55

66
// GROUPA: MyClass
77
// GROUPA-NOT: P1

0 commit comments

Comments
 (0)