Skip to content

Commit 2ddb859

Browse files
committed
[Sema] Restrict tests using Swift 6 mode to asserts compilers
1 parent 0a71a5c commit 2ddb859

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

test/Sema/access-level-and-non-resilient-import.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
/// Check diagnostics on a resilient modules importing publicly a
2+
/// a non-resilient module.
3+
14
// RUN: %empty-directory(%t)
25
// RUN: split-file %s %t
36

7+
// REQUIRES: asserts
8+
49
/// Build the libraries.
510
// RUN: %target-swift-frontend -emit-module %t/DefaultLib.swift -o %t
611
// RUN: %target-swift-frontend -emit-module %t/PublicLib.swift -o %t

test/Sema/access-level-import-inconsistencies.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
///
77
/// Swift 6 case, with default imports as internal.
88
/// Don't report any mismatch.
9-
///
10-
/// RUN: %empty-directory(%t)
11-
/// RUN: split-file %s %t
9+
10+
// RUN: %empty-directory(%t)
11+
// RUN: split-file %s %t
12+
13+
// REQUIRES: asserts
1214

1315
/// Build the library.
1416
// RUN: %target-swift-frontend -emit-module %t/Lib.swift -o %t

0 commit comments

Comments
 (0)