Commit Graph

26 Commits

Author SHA1 Message Date
Michael Gottesman
61ae730f00 [concurrency] Make all runtime tests also run with nonisolated(nonsending) by default enabled.
Just adding more code coverage.
2025-08-21 12:54:00 -07:00
Max Desiatov
67c4be0ac2 Update tests for wasi -> wasip1 triple change
Fixes a regression introduced with https://github.com/swiftlang/swift/pull/83167
2025-07-23 10:10:47 +01:00
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
Alex Lorenz
0f9a69c712 android test fixes 2024-05-28 12:59:26 -07:00
Rick van Voorden
f8ae46b3f3 [inclusive-language] changed sanity to soundness 2024-01-25 18:18:02 -08:00
Konrad `ktoso` Malawski
828f589be4 Initial Task Executor implementation Task(on:), addTask(on:) etc. (#68793)
Co-authored-by: John McCall <rjmccall@gmail.com>
2023-12-12 17:14:24 +09:00
Konrad `ktoso` Malawski
24a38fc090 [Concurrency] Verify the #if guards around moveonly Job (#64477) 2023-03-20 20:09:45 +09:00
Kuba (Brecka) Mracek
7853184ed6 Enable running tests from test/Concurrency/ directory in freestanding/minimal presets (#61835)
* Enable running tests from test/Concurrency/ directory in freestanding/minimal presets

* Mark failing Concurrency tests as XFAIL/SKIP on freestanding/minimal
2022-11-04 09:07:27 -07:00
Erik Eckstein
f4f2ca13f6 SIL Optimizer: add the OptimizeHopToExecutor in the late pipeline.
This is important to remove redundant `hop_to_executor` instructions after inlining.

rdar://95796233
2022-07-20 21:48:44 +02:00
Doug Gregor
7589520f7c Make back-deployed concurrency library testable on OS's that have the library.
Change the order of paths provided for `DYLD_LIBRARY_PATH` when running
tests for the back-deployed concurrency library, so they supersede the
ones in `/usr/lib/swift`. This way, we can test the back-deployed
concurrency library even on OS's that have the concurrency library in
them. It's not a complete test, because the standard library and
runtime will still vary, but can reproduce many failures more easily.

When using the back-deployed concurrency library, set the lit feature
`back_deploy_concurrency`. Update some tests that are unsupported with
back-deployment to check this.

Finally, add some logging when the concurrency runtime cannot be
tested at all, to help with debugging CI in the future.
2022-06-06 14:37:17 -07:00
Josh Soref
58880533bc Spelling concurrency (#42547)
* spelling: access is

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: executor

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: making

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: reabstraction

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: releasing

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: successes

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: whoopsie

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-04-22 15:05:20 -07:00
Evan Wilde
a53c727e90 Disable availability checking on failing tests
We won't look for async functions that can't be used due to availability
unless the availability checking is disabled. Need to disable the
availability checking due to the minimum deploy target being too low for
concurrency.
2021-12-20 13:06:35 -08:00
Saleem Abdulrasool
7f67dcb1f9 test: enable async/Distributed tests on Windows
These were previously disabled due to the UB that caused the tests to
fail.  Now that this has been fixed, restore these tests to running
state in line with the other targets.
2021-11-20 08:24:25 -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
18323ddda9 Disable runtime exclusivity checking when using back-deployed concurrency.
The back-deployed concurrency libraries and older Swift runtimes are
not compatible, so turn off runtime exclusivity checking when running on
older systems. Fixes rdar://84274148.
2021-10-14 15:40:33 -07:00
Max Desiatov
04b47d7bdc test: mark a few tests as unsupported on Wasm/WASI (#39504)
Certain traps can't be supported on WASI, such as expectations for crashes, `setjmp` use, dynamic linking, multi-threading etc. These tests are marked as `UNSUPPORTED` when targeting Wasm/WASI.
2021-09-29 16:25:38 +01:00
Arnold Schwaighofer
9945e0804a Revert "Disable test while MikeA fixes it to unblock the builds."
This reverts commit 433215f8fe.

This should be fixed now by disabling emission of extend async frame
info on linux.
2021-09-15 15:47:04 -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
Michael Gottesman
433215f8fe Disable test while MikeA fixes it to unblock the builds.
rdar://82734785
2021-09-03 12:41:17 -07:00
Saleem Abdulrasool
bb1e5d76b0 Merge branch 'main' into dispatch-less 2021-07-27 13:44:57 -07:00
Doug Gregor
eeeea49764 Remove -enable-experimental-concurrency almost everywhere. 2021-07-26 21:24:43 -07:00
Saleem Abdulrasool
c9f567663e test: remove some %import-libdispatch usage in tests
These tests do not use the Dispatch swift module.  There is no need to
use the `%import-libdispatch` macro.  This is required to try to enable
these tests on Windows.
2021-07-26 17:56:27 -07:00
Michael Gottesman
2edc32b8e4 [concurrency] Test exclusivity just use crashing tests rather than FileCheck tests since the FileCheck tests are too unstable given concurrency.
I also migrated some of the tests (out of an abundance of caution) into the
executable test cases.
2021-07-23 11:49:15 -07:00
Michael Gottesman
dae605afa2 [concurrency] Disable custom executor tests on Windows since they seem to hang.
Custom executor isn't a true feature yet, so I am disabling on Windows until we
can look at why the hangs are occuring on Windows.
2021-07-22 13:25:10 -07:00
Michael Gottesman
f390450dcf [exclusivity] Add availability to some more test declarations. 2021-07-22 13:25:10 -07:00
Michael Gottesman
0aec81614d [exclusivity] Add support for Task local exclusivity access sets.
The implemented semantics are that:

1. Tasks have separate exclusivity access sets.
2. Any synchronous context that creates tasks will have its exclusive access set
   merged into the Tasks while the Task is running.

rdar://80492364
2021-07-22 13:25:10 -07:00