rust/tests/ui/thread-local
Alex Crichton 75fa9f6dec compiletest: Add a `//@ needs-threads` directive
This commit is extracted from #122036 and adds a new directive to the
`compiletest` test runner, `//@ needs-threads`. This is intended to
capture the need that a target must implement threading to execute a
specific test, typically one that uses `std::thread`. This is primarily
done for WebAssembly targets which currently do not have threads by
default. This enables transitioning a lot of `//@ ignore-wasm*`-style
ignores into a more self-documenting `//@ needs-threads` directive.
Additionally the `wasm32-wasi-preview1-threads` target, for example,
does actually have threads, but isn't tested in CI at this time. This
change enables running these tests for that target, but not other wasm
targets.
2024-03-06 12:35:07 -08:00
..
auxiliary [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
name-collision.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
non-static.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
non-static.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
thread-local-issue-37508.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
thread-local-mutation.rs Move some UI tests into subdirectories 2023-04-02 19:42:30 -04:00
thread-local-mutation.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
thread-local-static-ref-use-after-free.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
thread-local-static.rs Improve wording of static_mut_ref 2024-02-18 06:01:40 +03:00
thread-local-static.stderr allow static_mut_ref in some tests that specifically test mutable statics 2024-02-12 23:07:07 +01:00
tls-dylib-access.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
tls.rs compiletest: Add a `//@ needs-threads` directive 2024-03-06 12:35:07 -08:00