about summary refs log tree commit diff
path: root/library/std/tests/sync/rwlock.rs
AgeCommit message (Collapse)AuthorLines
2025-09-11fix config for poison macro testConnor Tsui-4/+4
Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
2025-08-09add nonpoison and poison rwlock testsConnor Tsui-280/+380
Adds tests for the `nonpoison::RwLock` variant by using a macro to duplicate the existing `poison` tests. Note that all of the tests here are adapted from the existing `poison` tests.
2025-08-09reorganize rwlock testsConnor Tsui-336/+348
This commit simply helps discern the actual changes needed to test both poison and nonpoison `rwlock`s.
2025-04-30Rename `(Mapped)(RwLock|Mutex)Guard::try_map` to `filter_map`.Zachary S-12/+18
1. analogous to std::cell::Ref(Mut)::filter_map. 2. doesn't imply `Try` genericizability.
2025-03-10Mark some std tests as requiring `panic = "unwind"`Paul Menage-0/+16
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-02-13library: Update rand to 0.9.0Eric Huss-1/+1
2025-01-26Move std::sync unit tests to integration testsbjorn3-0/+729
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.