Skip to content

Commit 3ae1c3f

Browse files
authored
Merge pull request #68259 from gottesmm/pr-a08bd7edcb144d406a4778c45bbb60b2ada554ba
[send-non-sendable] Add REQUIRES: asserts to concurrency tests that use SendNonSendable.
2 parents 9f786c8 + b53af94 commit 3ae1c3f

File tree

76 files changed

+80
-25
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+80
-25
lines changed

test/Concurrency/LLDBDebuggerFunctionActorExtension.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// RUN: %target-swift-frontend -disable-availability-checking -debugger-support %s -emit-sil -o /dev/null -verify -strict-concurrency=complete -enable-experimental-feature SendNonSendable
55

66
// REQUIRES: concurrency
7+
// REQUIRES: asserts
78

89
// This test simulates LLDB's expression evaluator making an otherwise illegal
910
// synchronous call into an extension of an actor, as it would to run `p n` in

test/Concurrency/actor_call_implicitly_async.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-swift-frontend -disable-availability-checking -warn-concurrency -parse-as-library %s -emit-sil -o /dev/null -verify -enable-experimental-feature SendNonSendable
33

44
// REQUIRES: concurrency
5-
5+
// REQUIRES: asserts
66

77
// some utilities
88
func thrower() throws {}

test/Concurrency/actor_defer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// RUN: %target-swift-frontend -parse-as-library -emit-sil -enable-actor-data-race-checks -o - %s | %FileCheck %s
77

88
// REQUIRES: concurrency
9+
// REQUIRES: asserts
910

1011
func doSomething() {}
1112

test/Concurrency/actor_derived_conformances.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// RUN: %target-swift-frontend -disable-availability-checking %s -emit-sil -o /dev/null -verify -strict-concurrency=complete -enable-experimental-feature SendNonSendable
55

66
// REQUIRES: concurrency
7+
// REQUIRES: asserts
78

89
actor A1: Comparable {}
910
// expected-error@-1 {{type 'A1' does not conform to protocol 'Comparable'}}

test/Concurrency/actor_existentials.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// RUN: %target-swift-frontend -disable-availability-checking %s -emit-sil -o /dev/null -verify -strict-concurrency=complete -enable-experimental-feature SendNonSendable
55

66
// REQUIRES: concurrency
7+
// REQUIRES: asserts
78

89
protocol P: Actor {
910
func f()

test/Concurrency/actor_inout_isolation.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// RUN: %target-swift-frontend -disable-availability-checking %s -emit-sil -o /dev/null -verify -verify-additional-prefix targeted-complete-sns- -verify-additional-prefix complete-sns- -strict-concurrency=complete -enable-experimental-feature SendNonSendable
55

66
// REQUIRES: concurrency
7+
// REQUIRES: asserts
78

89
// Verify that we don't allow actor-isolated state to be passed via inout
910
// Check:

test/Concurrency/actor_isolation.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// RUN: %target-swift-frontend -I %t -disable-availability-checking -warn-concurrency -parse-as-library -emit-sil -o /dev/null -verify -enable-experimental-feature SendNonSendable %s
77

88
// REQUIRES: concurrency
9+
// REQUIRES: asserts
910

1011
import OtherActors // expected-remark{{add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'OtherActors'}}{{1-1=@preconcurrency }}
1112

test/Concurrency/actor_isolation_cycle.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// RUN: %target-swift-frontend %s -emit-sil -o /dev/null -verify -strict-concurrency=complete -enable-experimental-feature SendNonSendable
55

66
// REQUIRES: concurrency
7+
// REQUIRES: asserts
78

89
public protocol P {
910
associatedtype T

test/Concurrency/actor_isolation_objc.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
// REQUIRES: concurrency
77
// REQUIRES: objc_interop
8+
// REQUIRES: asserts
89

910
import Foundation
1011

test/Concurrency/actor_isolation_unsafe.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// RUN: %target-swift-frontend -disable-availability-checking %s -emit-sil -o /dev/null -verify -verify-additional-prefix complete-sns- -strict-concurrency=complete -enable-experimental-feature SendNonSendable
55

66
// REQUIRES: concurrency
7+
// REQUIRES: asserts
78

89
@globalActor
910
actor SomeGlobalActor {

0 commit comments

Comments
 (0)