diff --git a/tcmalloc/testing/BUILD b/tcmalloc/testing/BUILD index fd9c599cc..caf81860b 100644 --- a/tcmalloc/testing/BUILD +++ b/tcmalloc/testing/BUILD @@ -682,7 +682,7 @@ create_tcmalloc_testsuite( "@com_google_absl//absl/strings", "@com_google_absl//absl/strings:str_format", "@com_google_absl//absl/time", - "@com_google_googletest//:gtest_main", + "@com_google_googletest//:gtest", ], ) diff --git a/tcmalloc/testing/reclaim_test.cc b/tcmalloc/testing/reclaim_test.cc index 35646e4ef..74b83f65b 100644 --- a/tcmalloc/testing/reclaim_test.cc +++ b/tcmalloc/testing/reclaim_test.cc @@ -186,3 +186,8 @@ TEST(ReclaimTest, ReclaimStable) { } // namespace } // namespace tcmalloc + +int main(int argc, char** argv) { + testing::InitGoogleTest(&argc, argv); + return RUN_ALL_TESTS(); +}