sapling/lib/configparser
Mark Thomas fdd103b31b configparser: avoid environment race in configparser tests
Summary:
The configparser tests `hg::tests::test_basic_hgplain` and
`hg::tests::test_hgplainexcept` set different values for `HGPLAIN` and
`HGPLAINEXCEPT`.  Since the tests run in parallel and use the same environment,
one of the tests may fail if they run at the same time.

For these tests, create a mutex for the environment and lock it for the
duration of the test, ensuring these tests do not interfere with each other.

Reviewed By: jsgf

Differential Revision: D14615394

fbshipit-source-id: 9f123668d93223655514db2ae34b05354a6b578c
2019-03-26 07:33:23 -07:00
..
benches configparser: upgrade crate to rust edition 2018 2019-03-11 15:32:55 -07:00
src configparser: avoid environment race in configparser tests 2019-03-26 07:33:23 -07:00
Cargo.toml configparser: avoid environment race in configparser tests 2019-03-26 07:33:23 -07:00
ConfigParser.cpp load blobs using hg's rust config and datapack code 2018-10-31 17:58:17 -07:00
ConfigParser.h load blobs using hg's rust config and datapack code 2018-10-31 17:58:17 -07:00