From f6b1c9b6e262de17c0817a5cb795afc861b90a15 Mon Sep 17 00:00:00 2001 From: Mislav Bradac Date: Mon, 16 Oct 2017 16:24:47 +0200 Subject: [PATCH] Fix mvcc tests Summary: This diff fixs failing release daily builds (hopefully).. Reviewers: buda, dgleich Reviewed By: buda Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D908 --- tests/unit/mvcc_one_transaction.cpp | 6 ++++++ tests/unit/mvcc_parallel_update.cpp | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) 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(); +}