about summary refs log tree commit diff
path: root/library/std/src/sync/mpsc/sync_tests.rs
AgeCommit message (Collapse)AuthorLines
2025-01-26Move std::sync unit tests to integration testsbjorn3-669/+0
This removes two minor OnceLock tests which test private methods. The rest of the tests should be more than enough to catch mistakes in those private methods. Also makes ReentrantLock::try_lock public. And finally it makes the mpmc tests actually run.
2024-07-29Reformat `use` declarations.Nicholas Nethercote-2/+1
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2023-12-10remove redundant importssurechen-1/+0
detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
2023-02-17std: add regression test for #107466joboet-0/+13
Tests that messages are immediately dropped once the last receiver is destroyed.
2023-01-10add `SyncSender::send_timeout` testIbraheem Ahmed-0/+8
2022-08-18make many std tests work in MiriRalf Jung-9/+12
2022-05-29Use Box::new() instead of box syntax in std testsest31-6/+6
2020-08-31std: move "mod tests/benches" to separate filesLzu Tao-0/+647
Also doing fmt inplace as requested.