Commit Graph

13 Commits

Author SHA1 Message Date
Konrad 'ktoso' Malawski
f2f4cf23ba [Concurrency] Unbreak priority tests so they actually run & fix them
if #available + -disable-availability-checking seems to have been broken
since... TBD since when exactly. This means that these tests were not
executing at all (!), and when available became fixed, they actually
started executing and seems they hanged.

This fixes the tests however we should look into any other tests which
may have suffered from this and also since when these tests started
hanging -- it likely is a change in how isolation was inferred.

resolves rdar://154765383
2025-07-02 22:14:57 -07:00
Alex Lorenz
0f9a69c712 android test fixes 2024-05-28 12:59:26 -07:00
Yuta Saito
515dff1ee7 [test][Concurrency] Disable async_task_base_priority.swift on single_threaded_concurrency
The test case blocks a thread and it blocks the whole execution with
cooperative global executor.
2023-10-11 18:14:43 +00:00
Michael Gottesman
b53af9419c [send-non-sendable] Add REQUIRES: asserts to concurrency tests that use SendNonSendable. 2023-08-31 19:25:23 -07:00
Michael Gottesman
026f1735b5 [send-non-sendable] Update concurrency tests so that we run them in all concurrency modes as appropriate.
This means that:

1. In test cases where minimal is the default (swift 5 without
-warn-concurrency), I added RUN lines for targeted, complete, and complete +
sns.

2. In test cases where complete is the default (swift 6, -warn-concurrency,
specified complete with -strict-concurrency), I added a send non-sendable run
line.

In each of these cases, I added additional expected-* lines as appropriate so
the tests can compile in each mode successfully.
2023-08-30 13:40:17 -07:00
Nate Cook
27c1d4971a [test] Disable two hanging tests on tvOS simulator (#63886) 2023-02-24 10:23:27 -06:00
Nate Cook
11c32fa943 [test] Disable two hanging tests on iOS simulator (#63867) 2023-02-23 12:20:28 -06:00
Rokhini Prabhu
e052ccef31 Create the notion of a TaskDependencyStatusRecord which tracks what a
task is blocked on. We can use this information to then perform live
priority escalation to a task future.

Radar-Id: rdar://problem/88093007
2023-02-08 17:29:55 -08:00
Hamish Knight
95c4ccfd64 [test] Disable a couple of tests on watchOS simulator 2022-10-21 11:30:34 +01:00
Yuta Saito
687dca9d60 [Threading][test] disable threaded lit tests under threading_none 2022-07-07 01:57:38 +00: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
Rokhini Prabhu
fcf1c6d0e1 Only import darwin on platforms which support it. Otherwise fallback to
the appropriate C stdlib library

Radar-Id: rdar://problem/88578177
2022-02-07 10:03:19 -08:00
Rokhini Prabhu
9df1c9a135 Track base priority separately from max priority whereby base priority
is set at creation time. Create a new API for accessing this state

Radar-Id: rdar://problem/86100376
2022-01-24 07:50:27 -08:00