Commit Graph

26 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
Alexis Laferrière
81e465971c Tests: un-xfail tests on the freestanding bot 2024-03-13 13:32:41 -07:00
Alexis Laferrière
841740e7ab Tests: XFAIL a few tests on freestanding
rdar://121121793
2024-03-11 13:29:49 -07:00
Allan Shortlidge
ac464f3d15 Revert "Disable some Concurrency tests on freestanding"
This reverts commit a8e79e7430.
2024-01-03 13:59:02 -08:00
Meghana Gupta
a8e79e7430 Disable some Concurrency tests on freestanding 2023-11-01 13:13:55 -07:00
Konrad `ktoso` Malawski
2f479630a4 [Concurrency] Re-enable async_taskgroup_asynciterator_semantics on linux 2023-09-12 07:37:03 +09:00
Konrad `ktoso` Malawski
376a9a80c3 unlock test: async_taskgroup_asynciterator_semantics 2023-08-09 08:44:12 +09:00
Konrad `ktoso` Malawski
0cc31cabe2 reenable async_taskgroup_next_on_pending 2023-08-09 08:44:12 +09:00
Ben Barham
c163e0fe5e [Tests] Make OS features consistent
lit.py currently allows any substring of `target_triple` to be used as a
feature in REQUIRES/UNSUPPORTED/XFAIL. This results in various forms of
the OS spread across the tests and is also somewhat confusing since they
aren't actually listed in the available features.

Modify all OS-related features to use the `OS=` version that Swift adds
instead. We can later remove `config.target_triple` so that these don't
the non-OS versions don't work in the first place.
2022-05-20 19:51:23 -07:00
Mishal Shah
991e32fa15 Add bug info to the test 2021-12-03 11:58:09 -08:00
Saleem Abdulrasool
076b8d36ac test: mark flaky test as depending on rdar 2021-12-03 11:49:45 -08:00
Karoy Lorentey
47956908b7 [Concurrency] SwiftStdlib 5.5 ⟹ SwiftStdlib 5.1 (usages)
The concurrency runtime now deploys back to macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, which corresponds to the 5.1 release of the stdlib.

Adjust macro usages accordingly.
2021-10-28 14:36:36 -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
Konrad `ktoso` Malawski
d4ebc58754 [Concurrency] Fix group child tasks not being released
The proper handling of task group child tasks is that:
- if it completes a waiting task immediately, we don't need to retain it
  - we just move the value to the waiting task and can destroy the task
- if we need to store the ready task and wait for a waiting task (for a
  task that hits `await group.next()`) then we need to retain the ready
  task.
  - as the waiting task arrives, we move the value from the ready task
    to the waiting task, and swift_release the ready task -- it will now
    be destroyed safely.
2021-09-04 20:00:39 +09: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
Meghana Gupta
e980c4ea25 Un-XFAIL 2 Concurrency tests on Windows 2021-06-29 19:08:36 -07:00
Alexis Laferrière
3310a55682 [Test] Use the SwiftStdlib 5.5 macro in Concurrency tests 2021-05-06 13:48:49 -07:00
Konrad `ktoso` Malawski
ff2b2ce3b9 Update async_taskgroup_asynciterator_semantics.swift 2021-04-23 08:13:33 +09:00
Konrad `ktoso` Malawski
48ddcdcbd2 [TaskGroup] add simple test to group asynciterator test
Simple additional test, not because it's unexpected but to document what we're expecting.
2021-04-23 08:07:12 +09:00
Nate Chandler
ff7c98123a [Test] Disabled several Concurrency tests for back_deployment_runtime.
rdar://76566598
2021-04-13 15:27:41 -07:00
Nate Chandler
ffff66d376 [Test] Disable tests that require new libswiftCore features for back deploy.
rdar://76564535
2021-04-12 16:45:09 -07:00
Nate Chandler
4d56b62367 [Test] Marked flakey-on-linux tests unsupported. 2021-04-07 16:11:12 -07:00
Konrad `ktoso` Malawski
989db80b20 [Concurrency] fix a few missing @available annotations 2021-04-05 09:59:16 +09:00
Konrad `ktoso` Malawski
34f8e768b5 spawnDetached to detach, non-suspending group.spawn, spawnUnlessCancelled 2021-04-03 09:53:32 +09:00
Nate Cook
31144b9a52 Test for Update TaskGroup iterator semantics to match proposal
This modifies TaskGroup.Iterator so that it doesn't continue returning
elements after throwing. This is a more restricted behavior than
TaskGroup.next(), which keeps returning elements or throwing errors
until all tasks have been consumed.
2021-04-03 09:52:03 +09:00