Skip to content

Commit b07a2aa

Browse files
authored
Merge pull request swiftlang#74233 from hamishknight/batch-completion
[test] Switch to `%batch-code-completion` in a few tests
2 parents 64869e5 + 0a71a90 commit b07a2aa

21 files changed

+21
-38
lines changed

test/IDE/complete_actorisolation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// REQUIRES: concurrency
2-
// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t -warn-concurrency
2+
// RUN: %batch-code-completion -warn-concurrency
33

44
class MyNonSendable {}
55
struct MySendable {}

test/IDE/complete_after_pattern_in_closure.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// RUN: %empty-directory(%t)
2-
// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t -enable-experimental-concurrency
1+
// RUN: %batch-code-completion -enable-experimental-concurrency
32

43
func makeURL(withExtension ext: Int?) -> Int? {
54
return nil

test/IDE/complete_annotation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-ide-test -batch-code-completion -code-completion-annotate-results -code-completion-sourcetext -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t
1+
// RUN: %batch-code-completion -code-completion-annotate-results -code-completion-sourcetext
22

33
struct MyStruct {
44
init(x: Int) {}

test/IDE/complete_annotation_concurrency.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// RUN: %empty-directory(%t)
2-
// RUN: %target-swift-ide-test -batch-code-completion -code-completion-annotate-results -code-completion-sourcetext -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t
1+
// RUN: %batch-code-completion -code-completion-annotate-results -code-completion-sourcetext
32

43
// REQUIRES: concurrency
54

test/IDE/complete_call_pattern.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// RUN: %empty-directory(%t)
2-
// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t -disable-objc-attr-requires-foundation-module
1+
// RUN: %batch-code-completion -disable-objc-attr-requires-foundation-module
32

43
struct FooStruct {
54
init() {}

test/IDE/complete_concurrency_keyword.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t -enable-experimental-concurrency
1+
// RUN: %batch-code-completion -enable-experimental-concurrency
22

33
// REQUIRES: concurrency
44

test/IDE/complete_diagnostics_concurrency.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// REQUIRES: concurrency
22

3-
// RUN: %empty-directory(%t)
4-
// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t/output -warn-concurrency
3+
// RUN: %batch-code-completion -warn-concurrency
54

65
func asyncFunc() async {}
76
func syncFunc() {}

test/IDE/complete_globalactorunsafe_strict.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t -warn-concurrency
1+
// RUN: %batch-code-completion -warn-concurrency
22
// REQUIRES: concurrency
33

44
// SAFE_NOTREC: Begin completions, 2 items

test/IDE/complete_if_switch_expr.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// RUN: %empty-directory(%t)
2-
// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -debug-forbid-typecheck-prefix FORBIDDEN -filecheck %raw-FileCheck -completion-output-dir %t
1+
// RUN: %batch-code-completion -debug-forbid-typecheck-prefix FORBIDDEN
32

43
enum E {
54
case e

test/IDE/complete_implicit_last_expr.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// RUN: %empty-directory(%t)
2-
// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -enable-experimental-feature ImplicitLastExprResults -debug-forbid-typecheck-prefix FORBIDDEN -filecheck %raw-FileCheck -completion-output-dir %t
1+
// RUN: %batch-code-completion -enable-experimental-feature ImplicitLastExprResults -debug-forbid-typecheck-prefix FORBIDDEN
32

43
// Experimental feature requires asserts
54
// REQUIRES: asserts

0 commit comments

Comments
 (0)