Skip to content

Commit

Permalink
Remove dependency on gtest_main as that seems to cause some bad depen…
Browse files Browse the repository at this point in the history
…dencies in starrocks tests
  • Loading branch information
James Pack committed Dec 6, 2018
1 parent fc04cb4 commit b5a65f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/gtest/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ licenses(["notice"])
cc_library(
name = "gtest",
deps = [
"@com_google_googletest//:gtest_main",
"@com_google_googletest//:gtest",
],
visibility = ["//visibility:public"],
)
Expand Down
5 changes: 5 additions & 0 deletions third_party/gtest/compile_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ namespace stardog {
}
}
}

int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}

0 comments on commit b5a65f8

Please sign in to comment.