]> git.proxmox.com Git - cargo.git/commit - tests/testsuite/out_dir.rs
Auto merge of #6900 - jethrogb:nonconcurrent-tests, r=ehuss
authorbors <bors@rust-lang.org>
Fri, 7 Jun 2019 20:31:55 +0000 (20:31 +0000)
committerbors <bors@rust-lang.org>
Fri, 7 Jun 2019 20:31:55 +0000 (20:31 +0000)
commitd5723eb81a5a6755c0da6a2627f18318c031721d
tree111816682ff7927400f3b17c1d843833a9f7b007
parente30ab5e7ccbadbc3de4a4ecd03106859902e4f4d
parenta8c22ca1e801df08a515ac7a16a35034e753fa7e
Auto merge of #6900 - jethrogb:nonconcurrent-tests, r=ehuss

Fix nonconcurrent tests

The cargo testsuite relies on a clean test “root” for every test (i.e. `#[test]`-annotated function). It relied on the `test` crate's behavior to spawn a new thread for each test, which isn't done when tests aren't run concurrently, breaking the test suite. In this PR, I'm using backtraces to figure out which test is being run, which is much more robust. I also cleaned up the root initialization logic so that it no longer recursive calls the `init` function.

Fixes #6746