test: Use Thread::scoped in two more tests

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!
This commit is contained in:
Alex Crichton 2015-01-10 22:56:01 -08:00
parent 431105a70a
commit b8304e5404
2 changed files with 2 additions and 2 deletions

View File

@ -19,5 +19,5 @@ fn f() {
}
pub fn main() {
let _t = Thread::spawn(f);
let _t = Thread::scoped(f);
}

View File

@ -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()
});
}