about summary refs log tree commit diff
path: root/library/std/src/thread/tests.rs
AgeCommit message (Collapse)AuthorLines
2025-03-10Mark some std tests as requiring `panic = "unwind"`Paul Menage-0/+5
This allows these test modules to pass on builds/targets without unwinding support, where `panic = "abort"` - the ignored tests are for functionality that's not supported on those targets.
2025-03-06library: Use size_of from the prelude instead of importedThalia Archibald-2/+2
Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the prelude instead of importing or qualifying them. These functions were added to all preludes in Rust 1.80.
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-1/+1
2024-07-29Reformat `use` declarations.Nicholas Nethercote-9/+5
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-04-28Use `target_vendor = "apple"` instead of `target_os = "..."`Mads Marquart-5/+1
2024-04-05Rollup merge of #123505 - ChrisDenton:revert-121666, r=workingjubileeGuillaume Gomez-20/+0
Revert "Use OS thread name by default" This reverts #121666 (Use the OS thread name by default if `THREAD_INFO` has not been initialized) due to #123495 (Thread names are not always valid UTF-8). It's not a direct revert because there have been other changes since that PR.
2024-04-05Revert #121666Chris Denton-20/+0
This reverts #121666 due to #123495
2024-03-18Support for visionOSAdam Gastineau-1/+2
2024-03-07Auto merge of #122113 - matthiaskrgr:rollup-5d1jnwi, r=matthiaskrgrbors-0/+1
Rollup of 9 pull requests Successful merges: - #121958 (Fix redundant import errors for preload extern crate) - #121976 (Add an option to have an external download/bootstrap cache) - #122022 (loongarch: add frecipe and relax target feature) - #122026 (Do not try to format removed files) - #122027 (Uplift some feeding out of `associated_type_for_impl_trait_in_impl` and into queries) - #122063 (Make the lowering of `thir::ExprKind::If` easier to follow) - #122074 (Add missing PartialOrd trait implementation doc for array) - #122082 (remove outdated fixme comment) - #122091 (Note why we're using a new thread in `test_get_os_named_thread`) r? `@ghost` `@rustbot` modify labels: rollup
2024-03-06Document and test minimal stack size on WindowsChris Denton-0/+13
2024-03-06Note why we're using a new thread in a testChris Denton-0/+1
2024-03-04Don't run test_get_os_named_thread on win7roblabla-1/+1
This test won't work on windows 7, as the Thread::set_name function is not implemented there (win7 does not provide a documented mechanism to set thread names).
2024-02-27Test getting the OS thread nameChris Denton-0/+19
2023-06-21Update tvOS support elsewhere in the stdlibThom Chiovoloni-0/+1
2023-05-10Remove and fix useless drop of referenceUrgau-1/+3
2022-10-23Only test pthread_getname_np on linux-gnuJosh Stone-1/+7
2022-10-21Move truncation next to other thread tests for tidyJosh Stone-0/+25
2022-10-06std: add thread parking testsjoboet-0/+22
2022-08-18add some Miri-only testsRalf Jung-0/+19
2022-06-15Test NLL fix of bad lifetime inference for reference captured in closure.Frank Steffahn-0/+13
2022-05-29Use Box::new() instead of box syntax in std testsest31-2/+2
2022-03-09Add soundness test for dropping scoped thread results before joining.Mara Bos-1/+24
2022-03-09Remove outdated comment.Mara Bos-2/+0
2022-03-03Update test.Mara Bos-4/+4
2021-12-18Update stdlib to the 2021 editionLucas Kent-7/+8
2021-10-31Add test for JoinHandle::is_running.Mara Bos-1/+35
2020-08-31std: move "mod tests/benches" to separate filesLzu Tao-0/+262
Also doing fmt inplace as requested.