提交 d6d33770 编写于 作者: M Manish Goregaokar 提交者: Alex Crichton

Rollup merge of #22723 - alexcrichton:less-flaky-windows-test, r=alexcrichton

 If these tests exit while a thread is panicking it often leads to situations
like #22628.
......@@ -37,7 +37,8 @@ fn f(tx: Sender<bool>) {
pub fn main() {
let (tx, rx) = channel();
let _t = thread::spawn(move|| f(tx.clone()));
let t = thread::spawn(move|| f(tx.clone()));
println!("hiiiiiiiii");
assert!(rx.recv().unwrap());
drop(t.join());
}
......@@ -19,5 +19,6 @@ fn f() {
}
pub fn main() {
let _t = thread::spawn(f);
let t = thread::spawn(f);
drop(t.join());
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册