diff --git a/tests/unit/mvcc_one_transaction.cpp b/tests/unit/mvcc_one_transaction.cpp index 6fd610a3b..29f803ec8 100644 --- a/tests/unit/mvcc_one_transaction.cpp +++ b/tests/unit/mvcc_one_transaction.cpp @@ -108,3 +108,9 @@ TEST_F(Mvcc, RemoveAdvanceRemove) { EXPECT_EQ(T2_FIND, nullptr); EXPECT_DEATH(T2_REMOVE, ".*nullptr.*"); } + +int main(int argc, char **argv) { + ::testing::InitGoogleTest(&argc, argv); + ::testing::FLAGS_gtest_death_test_style = "threadsafe"; + return RUN_ALL_TESTS(); +} diff --git a/tests/unit/mvcc_parallel_update.cpp b/tests/unit/mvcc_parallel_update.cpp index 71dcd1923..c2e32b875 100644 --- a/tests/unit/mvcc_parallel_update.cpp +++ b/tests/unit/mvcc_parallel_update.cpp @@ -3,7 +3,6 @@ #undef T4_FIND #define T4_FIND version_list.find(*t4) - // IMPORTANT: look definiton of EXPECT_CRE and EXPECT_EXP macros in // tests/mvcc_find_update_common.hpp. Numbers in those macros represent // transaction ids when transactions where created. @@ -555,3 +554,9 @@ TEST_F(Mvcc, RemAbtRemAbt3) { T4_BEGIN; EXPECT_EQ(T4_FIND, v1); } + +int main(int argc, char **argv) { + ::testing::InitGoogleTest(&argc, argv); + ::testing::FLAGS_gtest_death_test_style = "threadsafe"; + return RUN_ALL_TESTS(); +}