From: Mark Isaacson Date: Mon, 24 Aug 2015 21:40:00 +0000 (-0700) Subject: Give folly/symbolizer an explicit main function X-Git-Tag: v0.55.0~2 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=commitdiff_plain;h=7b772a7bc3421e23a2a5d98febf2558f094999be Give folly/symbolizer an explicit main function Summary: Don't automatically generate the main function for this test. Reviewed By: @Gownta Differential Revision: D2375814 --- diff --git a/folly/experimental/symbolizer/test/SignalHandlerTest.cpp b/folly/experimental/symbolizer/test/SignalHandlerTest.cpp index 45912ef7..6ed03e8c 100644 --- a/folly/experimental/symbolizer/test/SignalHandlerTest.cpp +++ b/folly/experimental/symbolizer/test/SignalHandlerTest.cpp @@ -76,3 +76,10 @@ TEST(SignalHandler, Simple) { }}} // namespaces + +// Can't use initFacebookLight since that would install its own signal handlers +// Can't use initFacebookNoSignals since we cannot depend on common +int main(int argc, char** argv) { + ::testing::InitGoogleTest(&argc, argv); + return RUN_ALL_TESTS(); +} diff --git a/folly/experimental/symbolizer/test/SymbolizerTest.cpp b/folly/experimental/symbolizer/test/SymbolizerTest.cpp index 84be15b7..87f0ff07 100644 --- a/folly/experimental/symbolizer/test/SymbolizerTest.cpp +++ b/folly/experimental/symbolizer/test/SymbolizerTest.cpp @@ -116,3 +116,10 @@ TEST_F(ElfCacheTest, SignalSafeElfCache) { } }}} // namespaces + +// Can't use initFacebookLight since that would install its own signal handlers +// Can't use initFacebookNoSignals since we cannot depend on common +int main(int argc, char** argv) { + ::testing::InitGoogleTest(&argc, argv); + return RUN_ALL_TESTS(); +}