]> git.lizzy.rs Git - rust.git/commit - src/tools/rustfmt
Rollup merge of #81546 - hyd-dev:libtest-run-out-of-threads, r=Mark-Simulacrum
authorDylan DPC <dylan.dpc@gmail.com>
Thu, 18 Feb 2021 15:57:33 +0000 (16:57 +0100)
committerGitHub <noreply@github.com>
Thu, 18 Feb 2021 15:57:33 +0000 (16:57 +0100)
commit55ab2e38797ad1661ff4cfa95074a3d81636fde0
treef0e24335cc00fb698c7aeab728539113bf1da127
parentcb2effd44e667d133e31ef334e30d10195218ce6
parent43aed7441ee289c6228ecead91ee66245122b880
Rollup merge of #81546 - hyd-dev:libtest-run-out-of-threads, r=Mark-Simulacrum

[libtest] Run the test synchronously when hitting thread limit

libtest currently panics if it hits the thread limit. This often results in spurious test failures (<code>thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }'</code> ... `error: test failed, to rerun pass '--lib'`). This PR makes it continue to run the test synchronously if it runs out of threads.

Closes #78165.

``@rustbot`` label: A-libtest T-libs
library/test/src/lib.rs