Skip to content

Commit

Permalink
fix a missing thread join
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jul 14, 2022
1 parent bd69a92 commit 11f2b83
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/pass/concurrency/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,8 @@ fn park_unpark() {
// know Miri's timed synchronization primitives do not do that.

assert!((200..1000).contains(&start.elapsed().as_millis()));
}

fn check_condvar() {
let _ = std::sync::Condvar::new();
t2.join().unwrap();
}

fn main() {
Expand All @@ -236,5 +234,4 @@ fn main() {
check_once();
park_timeout();
park_unpark();
check_condvar();
}

0 comments on commit 11f2b83

Please sign in to comment.