diff --git a/third_party/gtest/BUILD b/third_party/gtest/BUILD index 2102b7179..c197318d4 100644 --- a/third_party/gtest/BUILD +++ b/third_party/gtest/BUILD @@ -3,7 +3,7 @@ licenses(["notice"]) cc_library( name = "gtest", deps = [ - "@com_google_googletest//:gtest_main", + "@com_google_googletest//:gtest", ], visibility = ["//visibility:public"], ) diff --git a/third_party/gtest/compile_test.cpp b/third_party/gtest/compile_test.cpp index 02d15dfae..91617474e 100644 --- a/third_party/gtest/compile_test.cpp +++ b/third_party/gtest/compile_test.cpp @@ -7,3 +7,8 @@ namespace stardog { } } } + +int main(int argc, char** argv) { + ::testing::InitGoogleTest(&argc, argv); + return RUN_ALL_TESTS(); +}