summaryrefslogtreecommitdiff
path: root/issues
diff options
context:
space:
mode:
authorVictor Costan <costan@google.com>2022-01-03 20:57:56 +0000
committerVictor Costan <pwnall@chromium.org>2022-01-03 21:05:04 +0000
commit8f464e7f68fd9d50ed39b2866ef8dac9c837439d (patch)
treeb6014b27534d4677bf761b4c84746a75aaa08c7d /issues
parentb2801ee1a0e3a5c0c393dc04eef63691f79ed694 (diff)
downloadleveldb-8f464e7f68fd9d50ed39b2866ef8dac9c837439d.tar.gz
Remove main() from most tests.
This gives some flexibility to embedders. Currently, embedders have to build a binary for each test file. After this CL, embedders can still choose to have a binary for each test file, by linking each test file with a googletest target that includes main() (usually "gtest_main"). Embedders can also choose to build a single binary for almost all test files, and link with a googletest target that includes main(). The latter is more convenient for projects that have very few test binaries, like Chromium. PiperOrigin-RevId: 419470798
Diffstat (limited to 'issues')
-rw-r--r--issues/issue178_test.cc5
-rw-r--r--issues/issue200_test.cc5
-rw-r--r--issues/issue320_test.cc5
3 files changed, 0 insertions, 15 deletions
diff --git a/issues/issue178_test.cc b/issues/issue178_test.cc
index 8fa5bb9..5cd5862 100644
--- a/issues/issue178_test.cc
+++ b/issues/issue178_test.cc
@@ -83,8 +83,3 @@ TEST(Issue178, Test) {
}
} // anonymous namespace
-
-int main(int argc, char** argv) {
- testing::InitGoogleTest(&argc, argv);
- return RUN_ALL_TESTS();
-}
diff --git a/issues/issue200_test.cc b/issues/issue200_test.cc
index 4eba23a..959b371 100644
--- a/issues/issue200_test.cc
+++ b/issues/issue200_test.cc
@@ -52,8 +52,3 @@ TEST(Issue200, Test) {
}
} // namespace leveldb
-
-int main(int argc, char** argv) {
- testing::InitGoogleTest(&argc, argv);
- return RUN_ALL_TESTS();
-}
diff --git a/issues/issue320_test.cc b/issues/issue320_test.cc
index c08296a..9d7fa7b 100644
--- a/issues/issue320_test.cc
+++ b/issues/issue320_test.cc
@@ -124,8 +124,3 @@ TEST(Issue320, Test) {
}
} // namespace leveldb
-
-int main(int argc, char** argv) {
- testing::InitGoogleTest(&argc, argv);
- return RUN_ALL_TESTS();
-}