Auto merge of #4810 - daira:fix-death-tests, r=daira

Fix death gtests on macOS by switching to the threadsafe style

[Tested on macOS](https://github.com/zcash/zcash/issues/4802#issuecomment-714770192). fixes #4802

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Homu 2020-10-23 17:26:33 +00:00
commit a4b6aaa333
1 changed files with 5 additions and 1 deletions

View File

@ -38,7 +38,11 @@ int main(int argc, char **argv) {
);
testing::InitGoogleMock(&argc, argv);
// The "threadsafe" style is necessary for correct operation of death/exit
// tests on macOS (https://github.com/zcash/zcash/issues/4802).
testing::FLAGS_gtest_death_test_style = "threadsafe";
auto ret = RUN_ALL_TESTS();
ECC_Stop();