From: Louis Brandy Date: Sat, 11 Apr 2015 00:36:56 +0000 (-0700) Subject: parse flags in unit tests X-Git-Tag: v0.36.0~43 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f22baf0e9594d15052564d8fe9823d457af10377;p=folly.git parse flags in unit tests Summary: This code has useful logging when turned up high enough (e.g. --v=11). But we need to parse the flags to see it. Test Plan: trial & error Reviewed By: yfeldblum@fb.com Subscribers: enis, folly-diffs@, jsedgwick, yfeldblum, darshan, chalfant FB internal diff: D1985965 Signature: t1:1985965:1428713065:4607610ec438416fffb5fced1867efa13544eef0 --- diff --git a/folly/futures/test/main.cpp b/folly/futures/test/main.cpp index 44a34867..457278f6 100644 --- a/folly/futures/test/main.cpp +++ b/folly/futures/test/main.cpp @@ -15,8 +15,10 @@ */ #include +#include int main(int argc, char** argv) { ::testing::InitGoogleTest(&argc, argv); + ::google::ParseCommandLineFlags(&argc, &argv, true); return RUN_ALL_TESTS(); }