Commit edc4bd3f authored by Michael Lee's avatar Michael Lee Committed by facebook-github-bot-4

Remove unecessary main functions.

Summary: Starting with this, but I will keep digging through these. The tests will be compiled into one combined test with a single main.

Reviewed By: yfeldblum

Differential Revision: D2841391

fb-gh-sync-id: 78fd153e282f1ca2dbe7ada942dc04fc8ba5d42d
parent 14564041
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#include <folly/Demangle.h> #include <folly/Demangle.h>
#include <gflags/gflags.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
using folly::demangle; using folly::demangle;
...@@ -69,9 +68,3 @@ TEST(Demangle, strlcpy) { ...@@ -69,9 +68,3 @@ TEST(Demangle, strlcpy) {
EXPECT_EQ(strlen(big_string), folly::strlcpy(buf, big_string, 0)); EXPECT_EQ(strlen(big_string), folly::strlcpy(buf, big_string, 0));
EXPECT_EQ('z', buf[0]); // unchanged, size = 0 EXPECT_EQ('z', buf[0]); // unchanged, size = 0
} }
int main(int argc, char *argv[]) {
testing::InitGoogleTest(&argc, argv);
gflags::ParseCommandLineFlags(&argc, &argv, true);
return RUN_ALL_TESTS();
}
...@@ -29,8 +29,6 @@ ...@@ -29,8 +29,6 @@
#include <boost/random.hpp> #include <boost/random.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <gflags/gflags.h>
#include <folly/Foreach.h> #include <folly/Foreach.h>
#include <folly/Portability.h> #include <folly/Portability.h>
#include <folly/Random.h> #include <folly/Random.h>
...@@ -1405,9 +1403,3 @@ TEST(FBStringCtorTest, DefaultInitStructAlloc) { ...@@ -1405,9 +1403,3 @@ TEST(FBStringCtorTest, DefaultInitStructAlloc) {
EXPECT_TRUE(t2.stringMember.empty()); EXPECT_TRUE(t2.stringMember.empty());
EXPECT_EQ(allocatorConstructedCount.load(), 1); EXPECT_EQ(allocatorConstructedCount.load(), 1);
} }
int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
gflags::ParseCommandLineFlags(&argc, &argv, true);
return RUN_ALL_TESTS();
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment