Uh oh!
There was an error while loading. Please reload this page.
Fix race in test_inherit_env - #42795
Conversation
`env` tests set (and unset) randomly generated variables with names starting with `TEST`. So in `test_inherit_env` between variable capture and process spawn `TEST*` variables can be unset if `env` tests executed concurrently. Thus `TEST*` variables must not be checked in that test.
rust-highfive
commented
Jun 21, 2017
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
alexcrichton
commented
Jun 22, 2017
Could this test actually be moved to a |
Shouldn't tests which modify global state be moved to run-pass, and this test (which doesn't modify global state) kept where it is instead? |
alexcrichton
commented
Jun 22, 2017
Yes, depends on how much work you're willing to do. One's much easier than the other most likely |
…crichton Move global vars changing tests into run-pass Should fix race rust-lang#42795
orivej
commented
Jun 8, 2018
Could it be that |
envtests set (and unset) randomly generated variables with namesstarting with
TEST. So intest_inherit_envbetween variablecapture and process spawn
TEST*variables can be unset ifenvtests executed concurrently. Thus
TEST*variables must not bechecked in that test.