parse flags in unit tests
authorLouis Brandy <ldbrandy@fb.com>
Sat, 11 Apr 2015 00:36:56 +0000 (17:36 -0700)
committerAlecs King <int@fb.com>
Mon, 27 Apr 2015 23:38:41 +0000 (16:38 -0700)
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

folly/futures/test/main.cpp

index 44a34867c781109731e38a4518f3a11f8a5e8879..457278f6bdf538b64d512762b155ad410a0aa042 100644 (file)
  */
 
 #include <gtest/gtest.h>
+#include <gflags/gflags.h>
 
 int main(int argc, char** argv) {
   ::testing::InitGoogleTest(&argc, argv);
+  ::google::ParseCommandLineFlags(&argc, &argv, true);
   return RUN_ALL_TESTS();
 }