about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-01-11 09:01:00 +0000
committerbors <bors@rust-lang.org>2015-01-11 09:01:00 +0000
commit71a71ce4f948dd5ae792db4a88c9cc2fae94dfb0 (patch)
tree12e1862f1306b5ce1e8b09ab754547bc3e53894f
parentd2d35db570f0d5da1b0b829e38b495e763a0a60b (diff)
parentb8304e540423b86bbe9789ed0088f29a61f46459 (diff)
downloadrust-71a71ce4f948dd5ae792db4a88c9cc2fae94dfb0.tar.gz
rust-71a71ce4f948dd5ae792db4a88c9cc2fae94dfb0.zip
auto merge of #20925 : alexcrichton/rust/more-flaky-test, r=sfackler
I saw these hanging on a windows bot, and the previous ones seem to have calmed
down after switching from Thread::spawn to Thread::scoped, so try that here as
well!
-rw-r--r--src/test/run-pass/unwind-unique.rs2
-rw-r--r--src/test/run-pass/weak-lang-item.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/unwind-unique.rs b/src/test/run-pass/unwind-unique.rs
index 371fd677bd9..74802c156a2 100644
--- a/src/test/run-pass/unwind-unique.rs
+++ b/src/test/run-pass/unwind-unique.rs
@@ -19,5 +19,5 @@ fn f() {
 }
 
 pub fn main() {
-    let _t = Thread::spawn(f);
+    let _t = Thread::scoped(f);
 }
diff --git a/src/test/run-pass/weak-lang-item.rs b/src/test/run-pass/weak-lang-item.rs
index 08dac5c7c82..b1c65d322ab 100644
--- a/src/test/run-pass/weak-lang-item.rs
+++ b/src/test/run-pass/weak-lang-item.rs
@@ -15,7 +15,7 @@ extern crate "weak-lang-items" as other;
 use std::thread::Thread;
 
 fn main() {
-    let _ = Thread::spawn(move|| {
+    let _ = Thread::scoped(move|| {
         other::foo()
     });
 }