Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 11f2b83

Browse files
committed
fix a missing thread join
1 parent bd69a92 commit 11f2b83

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/pass/concurrency/sync.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,8 @@ fn park_unpark() {
219219
// know Miri's timed synchronization primitives do not do that.
220220

221221
assert!((200..1000).contains(&start.elapsed().as_millis()));
222-
}
223222

224-
fn check_condvar() {
225-
let _ = std::sync::Condvar::new();
223+
t2.join().unwrap();
226224
}
227225

228226
fn main() {
@@ -236,5 +234,4 @@ fn main() {
236234
check_once();
237235
park_timeout();
238236
park_unpark();
239-
check_condvar();
240237
}

0 commit comments

Comments
 (0)