Commit Graph

18 Commits

Author SHA1 Message Date
Allan Shortlidge
c02fc4724d Tests: Remove -disable-availability-checking from many Concurrency tests.
Instead, use the `%target-swift-5.1-abi-triple` substitution to compile the tests
for deployment to the minimum OS versions required for use of _Concurrency APIs.
2024-10-18 16:21:51 -07:00
Doug Gregor
3ee09a2298 Switch concurrency runtime tests to "REQUIRES: concurrency_runtime"
Rather than blanket-disabling concurrency tests when we aren't using a
just-built concurrency library, enable them whenever we have a
suitable concurrency runtime, either just-built, in the OS, or via the
back-deployment libraries.
2021-09-13 12:34:20 -07:00
Doug Gregor
eeeea49764 Remove -enable-experimental-concurrency almost everywhere. 2021-07-26 21:24:43 -07:00
Doug Gregor
1e2012d816 Disable availability checking in tests that use concurrency 2021-07-20 12:46:26 -07:00
Joe Groff
74736c75ba Disable flaky test/Concurrency/Runtime/objc_async.swift test.
We need to introduce some proper synchronization between the @main task and the ObjC
completion handler to make this reliably deterministic. rdar://77934626
2021-05-12 15:24:40 -07:00
Joe Groff
391a3bd42d Add test that exercises still overriding ObjC async methods as completion handlers 2021-05-10 12:53:32 -07:00
Joe Groff
ecc46a809e Sleep to give new test completion handler a chance to run 2021-05-04 09:25:08 -07:00
Joe Groff
acac14e757 SILGen: Copy the block before detaching a task for async methods called from ObjC.
The block needs to survive long enough for the task to get scheduled. Fixes rdar://76871310.
2021-05-03 15:31:22 -07:00
Nate Chandler
ff7c98123a [Test] Disabled several Concurrency tests for back_deployment_runtime.
rdar://76566598
2021-04-13 15:27:41 -07:00
Kavon Farvardin
1586ca83d9 add execution test for ObjC-imported effectful properties 2021-04-02 08:33:22 -07:00
Karoy Lorentey
24aca4072a [test] Skip concurrency tests during back deployment testing
rdar://76038845
2021-03-30 22:35:38 -07:00
Joe Groff
0f395e347d IRGen: Initialize the executor field in continuation contexts again.
Fixes rdar://75783864.
2021-03-24 13:41:50 -07:00
Erik Eckstein
5fdd4b700e tests: disable Concurrency/Runtime/objc_async.swift because it crashes sometimes.
rdar://75783864
2021-03-24 15:19:28 +01:00
Nate Chandler
73c9733779 [Test] Reenabled Concurrency/Runtime tests on arm64e. 2021-02-03 19:21:59 -08:00
Nate Chandler
53d8780ca0 [Test] Reenable most arm64e concurrency tests.
rdar://72357371
2021-02-03 08:25:52 -08:00
Nate Chandler
798f86981f [Test] Replaced runAsyncAndBlock with async @main.
The last outstanding usage is in

    Concurrency/Runtime/checked_continuation.swift
2021-01-28 17:14:55 -08:00
John McCall
1177cde4e3 Use current public Dispatch API to schedule global work.
We expect to iterate on this quite a bit, both publicly
and internally, but this is a fine starting-point.

I've renamed runAsync to runAsyncAndBlock to underline
very clearly what it does and why it's not long for this
world.  I've also had to give it a radically different
implementation in an effort to make it continue to work
given an actor implementation that is no longer just
running all work synchronously.

The major remaining bit of actor-scheduling work is to
make swift_task_enqueue actually do something sensible
based on the executor it's been given; currently it's
expecting a flag that IRGen simply doesn't know to set.
2020-12-10 19:18:53 -05:00
Joe Groff
7ed46b136a Add a runtime test for ObjC interop. 2020-12-09 16:59:56 -08:00