Skip to content

Commit 28e13f1

Browse files
Patch '%swift -target %target-triple' tests to use the target-specific pendent %target-swift-frontend
1 parent 4780905 commit 28e13f1

6 files changed

+6
-6
lines changed

test/FixCode/batch-mode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not %swift -typecheck -target %target-triple -primary-file %s -emit-fixits-path %t.main.remap -primary-file %S/Inputs/batch-mode-helper.swift -emit-fixits-path %t.helper.remap
1+
// RUN: not %target-swift-frontend -typecheck -primary-file %s -emit-fixits-path %t.main.remap -primary-file %S/Inputs/batch-mode-helper.swift -emit-fixits-path %t.helper.remap
22
// RUN: %FileCheck -check-prefix=CHECK-MAIN %s < %t.main.remap
33
// RUN: %FileCheck -check-prefix=NEGATIVE-MAIN %s < %t.main.remap
44
// RUN: %FileCheck -check-prefix=CHECK-HELPER %s < %t.helper.remap

test/FixCode/fixits-apply-all.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This tests whether we accept fixits from warnings without filtering.
22
// The particular diagnostics used are not important.
33

4-
// RUN: %swift -typecheck -target %target-triple %s -fixit-all -emit-fixits-path %t.remap
4+
// RUN: %target-swift-frontend -typecheck %s -fixit-all -emit-fixits-path %t.remap
55
// RUN: c-arcmt-test %t.remap | arcmt-test -verify-transformed-files %s.result
66

77
func ftest1() {

test/FixCode/fixits-if-else.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not %swift -emit-sil -target %target-triple %s -emit-fixits-path %t.remap -I %S/Inputs
1+
// RUN: not %target-swift-frontend -emit-sil %s -emit-fixits-path %t.remap -I %S/Inputs
22
// RUN: c-arcmt-test %t.remap | arcmt-test -verify-transformed-files %s.result
33

44
func something() -> Bool { return true }

test/FixCode/verify-fixits.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: cp %s %t
2-
// RUN: not %swift -typecheck -target %target-triple -verify-apply-fixes %t
2+
// RUN: not %target-swift-frontend -typecheck -verify-apply-fixes %t
33
// RUN: diff %t %s.result
44

55
func f1() {

test/IDE/rdar141440011.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ public protocol MyProto {}
22
public struct MyStruct: MyProto {}
33

44
// RUN: %empty-directory(%t)
5-
// RUN: %swift -emit-module -o %t/swift_mod.swiftmodule %s -parse-as-library -experimental-skip-all-function-bodies -experimental-skip-non-exportable-decls -experimental-lazy-typecheck -target %target-triple
5+
// RUN: %target-swift-frontend -emit-module -o %t/swift_mod.swiftmodule %s -parse-as-library -experimental-skip-all-function-bodies -experimental-skip-non-exportable-decls -experimental-lazy-typecheck -target %target-triple
66
// RUN: %target-swift-synthesize-interface -module-name swift_mod -I %t -o - -target %target-triple | %FileCheck %s
77

88
// CHECK: public struct MyStruct : swift_mod.MyProto

test/Sema/fixits-derived-conformances.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift -emit-module -emit-library -module-name Types %S/Inputs/fixits-derived-conformances-multifile.swift -o %t/%target-library-name(Types)
3-
// RUN: %swift -typecheck -target %target-triple -I %t -verify %s
3+
// RUN: %target-swift-frontend -typecheck -I %t -verify %s
44

55
import Types
66

0 commit comments

Comments
 (0)