diff options
author | Victor Costan <costan@google.com> | 2022-01-03 20:57:56 +0000 |
---|---|---|
committer | Victor Costan <pwnall@chromium.org> | 2022-01-03 21:05:04 +0000 |
commit | 8f464e7f68fd9d50ed39b2866ef8dac9c837439d (patch) | |
tree | b6014b27534d4677bf761b4c84746a75aaa08c7d /util/arena_test.cc | |
parent | b2801ee1a0e3a5c0c393dc04eef63691f79ed694 (diff) | |
download | leveldb-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 'util/arena_test.cc')
-rw-r--r-- | util/arena_test.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/util/arena_test.cc b/util/arena_test.cc index 90226fe..3e2011e 100644 --- a/util/arena_test.cc +++ b/util/arena_test.cc @@ -59,8 +59,3 @@ TEST(ArenaTest, Simple) { } } // namespace leveldb - -int main(int argc, char** argv) { - testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); -} |