Merge pull request #34141 from tchaikov/wip-test-threadsafe

test/objectstore: set "threadsafe" flag for ASSERT_DEATH tests

Reviewed-by: Neha Ojha <nojha@redhat.com>
This commit is contained in:
Kefu Chai 2020-03-27 12:52:28 +08:00 committed by GitHub
commit 76b81f3a88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,8 +122,10 @@ TEST(chain_xattr, get_and_set) {
int x;
const string name = user + string(CHAIN_XATTR_MAX_NAME_LEN * 2, '@');
PrCtl unset_dumpable;
::testing::FLAGS_gtest_death_test_style = "threadsafe";
ASSERT_DEATH(chain_setxattr(file, name.c_str(), &x, sizeof(x)), "");
ASSERT_DEATH(chain_fsetxattr(fd, name.c_str(), &x, sizeof(x)), "");
::testing::FLAGS_gtest_death_test_style = "fast";
}
{