rust/tests/ui/threads-sendsync
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
child-outlives-parent.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
clone-with-exterior.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
comm.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
eprint-on-tls-drop.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
issue-4446.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
issue-4448.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
issue-8827.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
issue-9396.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
issue-24313.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
issue-29488.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
issue-43733-2.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
issue-43733.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
issue-43733.stderr Stabilize THIR unsafeck 2024-01-05 10:00:59 +00:00
mpsc_stress.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
send_str_hashmap.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
send_str_treemap.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
send-is-not-static-par-for.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
send-resource.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
send-type-inference.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
sendable-class.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
sendfn-is-a-block.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
sendfn-spawn-with-fn-arg.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
spawn2.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
spawn-fn.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
spawn-types.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
spawn.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
spawning-with-debug.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
std-sync-right-kind-impls.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
sync-send-atomics.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
sync-send-in-std.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
sync-send-iterators-in-libcollections.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
sync-send-iterators-in-libcore.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
task-comm-0.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
task-comm-1.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
task-comm-3.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
task-comm-4.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
task-comm-5.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
task-comm-6.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
task-comm-7.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
task-comm-9.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
task-comm-10.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
task-comm-11.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
task-comm-12.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
task-comm-13.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
task-comm-14.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
task-comm-15.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
task-comm-16.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
task-comm-17.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
task-comm-chan-nil.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
task-life-0.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
task-spawn-barefn.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
task-spawn-move-and-copy.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
task-stderr.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
tcp-stress.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
test-tasks-invalid-value.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
thread-local-extern-static.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
thread-local-syntax.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
threads.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
tls-dtors-are-run-in-a-static-binary.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
tls-init-on-init.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
tls-try-with.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
trivial-message.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unwind-resource.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
yield1.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
yield2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
yield.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00