Skip to content

Commit c3a0822

Browse files
committed
[Tests] NFC: Disable availability checking in @preconcurrency conformances tests
1 parent 1caafee commit c3a0822

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

test/ClangImporter/preconcurrency_conformances.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -enable-experimental-feature PreconcurrencyConformances -emit-silgen %s | %FileCheck %s
1+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -disable-availability-checking -enable-experimental-feature PreconcurrencyConformances -emit-silgen %s | %FileCheck %s
22

33
// REQUIRES: asserts
44
// REQUIRES: concurrency

test/Concurrency/preconcurrency_conformances.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ extension TestConditional : @preconcurrency WithAssoc where T == Int {
111111

112112
@globalActor
113113
struct GlobalActor {
114-
static var shared: MyActor = MyActor()
114+
static let shared: MyActor = MyActor()
115115
}
116116

117117
protocol WithIndividuallyIsolatedRequirements {

test/Interpreter/preconcurrency_conformances.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
// RUN: split-file %s %t/src
33

44
// RUN: %target-build-swift %t/src/Interface.swift -swift-version 5 -emit-module -emit-library \
5+
// RUN: -target %target-cpu-apple-macosx10.15 -swift-version 5 \
56
// RUN: -enable-library-evolution \
67
// RUN: -module-name Interface \
78
// RUN: -o %t/%target-library-name(Interface) \
89
// RUN: -emit-module-interface-path %t/Interface.swiftinterface
910

1011
// RUN: %target-build-swift %t/src/Types.swift -swift-version 5 -emit-module -emit-library -enable-library-evolution -module-name Types -o %t/%target-library-name(Types) \
12+
// RUN: -target %target-cpu-apple-macosx10.15 \
1113
// RUN: -I %t -L %t -l Interface \
1214
// RUN: -emit-module-interface-path %t/Types.swiftinterface \
1315
// RUN: -Xfrontend -enable-experimental-feature -Xfrontend PreconcurrencyConformances
@@ -31,6 +33,7 @@
3133
// REQUIRES: asserts
3234
// REQUIRES: concurrency
3335
// REQUIRES: executable_test
36+
// REQUIRES: OS=macosx
3437

3538
//--- Interface.swift
3639
public protocol P {

test/ModuleInterface/preconcurrency_conformances.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@
1313
// RUN: -emit-module-path %t/Client.swiftmodule \
1414
// RUN: -emit-module-interface-path %t/Client.swiftinterface \
1515
// RUN: -enable-experimental-feature PreconcurrencyConformances \
16+
// RUN: -disable-availability-checking \
1617
// RUN: -verify
1718

1819
// RUN: %FileCheck %s < %t/Client.swiftinterface
1920

2021
// RUN: %target-swift-emit-module-interface(%t/Client.swiftinterface) -I %t %t/src/Client.swift -module-name Client \
21-
// RUN: -enable-experimental-feature PreconcurrencyConformances -verify
22+
// RUN: -disable-availability-checking -enable-experimental-feature PreconcurrencyConformances -verify
2223

2324
// RUN: %target-swift-typecheck-module-from-interface(%t/Client.swiftinterface) -I %t -module-name Client \
24-
// RUN: -enable-experimental-feature PreconcurrencyConformances -verify
25+
// RUN: -disable-availability-checking -enable-experimental-feature PreconcurrencyConformances -verify
2526

2627
// REQUIRES: asserts
2728
// REQUIRES: concurrency

test/SILGen/preconcurrency_conformances.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-emit-silgen -module-name preconcurrency_conformances -enable-experimental-feature PreconcurrencyConformances %s -verify | %FileCheck %s
1+
// RUN: %target-swift-emit-silgen -disable-availability-checking -module-name preconcurrency_conformances -enable-experimental-feature PreconcurrencyConformances %s -verify | %FileCheck %s
22

33
// REQUIRES: asserts
44
// REQUIRES: concurrency

0 commit comments

Comments
 (0)