Skip to content

Commit

Permalink
Patch '%swift -target %target-triple' tests to use the target-specifi…
Browse files Browse the repository at this point in the history
…c pendent %target-swift-frontend
  • Loading branch information
weliveindetail committed Feb 26, 2025
1 parent 4780905 commit 28e13f1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/FixCode/batch-mode.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 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
// 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
// RUN: %FileCheck -check-prefix=CHECK-MAIN %s < %t.main.remap
// RUN: %FileCheck -check-prefix=NEGATIVE-MAIN %s < %t.main.remap
// RUN: %FileCheck -check-prefix=CHECK-HELPER %s < %t.helper.remap
Expand Down
2 changes: 1 addition & 1 deletion test/FixCode/fixits-apply-all.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This tests whether we accept fixits from warnings without filtering.
// The particular diagnostics used are not important.

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

func ftest1() {
Expand Down
2 changes: 1 addition & 1 deletion test/FixCode/fixits-if-else.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: not %swift -emit-sil -target %target-triple %s -emit-fixits-path %t.remap -I %S/Inputs
// RUN: not %target-swift-frontend -emit-sil %s -emit-fixits-path %t.remap -I %S/Inputs
// RUN: c-arcmt-test %t.remap | arcmt-test -verify-transformed-files %s.result

func something() -> Bool { return true }
Expand Down
2 changes: 1 addition & 1 deletion test/FixCode/verify-fixits.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: cp %s %t
// RUN: not %swift -typecheck -target %target-triple -verify-apply-fixes %t
// RUN: not %target-swift-frontend -typecheck -verify-apply-fixes %t
// RUN: diff %t %s.result

func f1() {
Expand Down
2 changes: 1 addition & 1 deletion test/IDE/rdar141440011.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ public protocol MyProto {}
public struct MyStruct: MyProto {}

// RUN: %empty-directory(%t)
// 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
// 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
// RUN: %target-swift-synthesize-interface -module-name swift_mod -I %t -o - -target %target-triple | %FileCheck %s

// CHECK: public struct MyStruct : swift_mod.MyProto
2 changes: 1 addition & 1 deletion test/Sema/fixits-derived-conformances.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: %empty-directory(%t)
// RUN: %target-build-swift -emit-module -emit-library -module-name Types %S/Inputs/fixits-derived-conformances-multifile.swift -o %t/%target-library-name(Types)
// RUN: %swift -typecheck -target %target-triple -I %t -verify %s
// RUN: %target-swift-frontend -typecheck -I %t -verify %s

import Types

Expand Down

0 comments on commit 28e13f1

Please sign in to comment.