|
1 |
| -// RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking %import-libdispatch -parse-as-library) |
| 1 | +// NOT: %target-run-simple-swift( -Xfrontend -disable-availability-checking %import-libdispatch -parse-as-library) |
| 2 | + |
| 3 | +// RUN: %empty-directory(%t) |
| 4 | +// RUN: %target-build-swift -Xfrontend -disable-availability-checking -parse-as-library %s -o %t/a.out |
| 5 | +// RUN: %target-codesign %t/a.out |
| 6 | +// RUN: %env-SWIFT_IS_CURRENT_EXECUTOR_LEGACY_MODE_OVERRIDE=legacy %target-run %import-libdispatch %t/a.out |
| 7 | +// RUN: %env-SWIFT_IS_CURRENT_EXECUTOR_LEGACY_MODE_OVERRIDE=swift6 %target-run %import-libdispatch %t/a.out |
| 8 | + |
2 | 9 |
|
3 | 10 | // REQUIRES: concurrency
|
4 | 11 | // REQUIRES: executable_test
|
|
7 | 14 | // rdar://106849189 move-only types should be supported in freestanding mode
|
8 | 15 | // UNSUPPORTED: freestanding
|
9 | 16 |
|
10 |
| -// rdar://119743909 fails in optimze tests. |
| 17 | +// rdar://119743909 fails in optimized tests. |
11 | 18 | // UNSUPPORTED: swift_test_mode_optimize
|
12 | 19 | // UNSUPPORTED: swift_test_mode_optimize_size
|
13 | 20 |
|
@@ -86,9 +93,9 @@ struct Runner {
|
86 | 93 | await actor.test(expectedExecutor: two)
|
87 | 94 | }
|
88 | 95 | tests.test("isSameExclusiveContext=false, causes same executor checks to crash") {
|
89 |
| - expectCrashLater(withMessage: "Precondition failed: Incorrect actor executor assumption; " + |
90 |
| - "Expected 'NaiveQueueExecutor(unknown)' executor. " + |
91 |
| - "Expected deep equality to trigger for ") |
| 96 | + // In Swift6 mode the error message for the crash depends on dispatch, so it is lower |
| 97 | + // quality than our specialized messages; We cannot assert on the text since we run in both modes. |
| 98 | + expectCrashLater() |
92 | 99 |
|
93 | 100 | let unknown = NaiveQueueExecutor(name: "unknown", DispatchQueue(label: "unknown"))
|
94 | 101 | let actor = MyActor(executor: one)
|
|
0 commit comments