diff options
| author | bors <bors@rust-lang.org> | 2015-05-28 02:17:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-05-28 02:17:48 +0000 |
| commit | 1a3cffbddfa21aac6fabd2f07f86703fbf1f26a5 (patch) | |
| tree | d5ce69a67e4a08f42c367080f5cb49d7aa3572e5 | |
| parent | f76d9bcfc2c269452522fbbe19f66fe653325646 (diff) | |
| parent | 279ec9b9b871dc6ef52ebc808adca177f596795e (diff) | |
| download | rust-1a3cffbddfa21aac6fabd2f07f86703fbf1f26a5.tar.gz rust-1a3cffbddfa21aac6fabd2f07f86703fbf1f26a5.zip | |
Auto merge of #25824 - alexcrichton:fix-deadlocking-test-on-windows, r=nikomatsakis
Windows tests can often deadlock if a child thread continues after the main thread and then panics, and a `println!` executed in a child thread after the main thread has exited is at risk of panicking.
| -rw-r--r-- | src/test/run-pass/macro-with-braces-in-expr-position.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/run-pass/macro-with-braces-in-expr-position.rs b/src/test/run-pass/macro-with-braces-in-expr-position.rs index 4881a5ab647..326d1cafe6c 100644 --- a/src/test/run-pass/macro-with-braces-in-expr-position.rs +++ b/src/test/run-pass/macro-with-braces-in-expr-position.rs @@ -8,15 +8,13 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![feature(std_misc)] - use std::thread; macro_rules! expr { ($e: expr) => { $e } } macro_rules! spawn { ($($code: tt)*) => { - expr!(thread::spawn(move|| {$($code)*})) + expr!(thread::spawn(move|| {$($code)*}).join()) } } |
