]> git.lizzy.rs Git - rust.git/commit
test: Move some tests to scoped instead of spawn
authorAlex Crichton <alex@alexcrichton.com>
Wed, 7 Jan 2015 17:22:06 +0000 (09:22 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 7 Jan 2015 18:06:27 +0000 (10:06 -0800)
commit99b39cc98ea03994f376b8389e4366b688334e65
tree1ed9e2910839e292c29d2de999e362ec7610f596
parent9e4e524e0eb17c8f463e731f23b544003e8709c6
test: Move some tests to scoped instead of spawn

These tests have all been failing spuroiusly on Windows from time to time, and
one suspicion is that the shilc thread outliving the main thread somehow causes
the problem. Switch all the tests over to using Thread::scoped instead of
Thread::spawn to see if it helps the issue.

cc #19120
src/test/run-pass/drop-trait-enum.rs
src/test/run-pass/extern-stress.rs
src/test/run-pass/extern-yield.rs
src/test/run-pass/issue-9396.rs
src/test/run-pass/tcp-accept-stress.rs
src/test/run-pass/threads.rs
src/test/run-pass/unique-send-2.rs
src/test/run-pass/unwind-resource.rs