aboutsummaryrefslogtreecommitdiff
path: root/unit_test/unit_test.cc
diff options
context:
space:
mode:
authorFrank Barchard <fbarchard@google.com>2015-10-19 16:30:41 -0700
committerFrank Barchard <fbarchard@google.com>2015-10-19 16:30:41 -0700
commite6a54f223a01bca6489139c211b2905e1deaaacf (patch)
tree112e2c597d51dc4a822de59c65ffedea63f5b266 /unit_test/unit_test.cc
parent7e936044d154b9fe159a67f9562e10b1ef1cb590 (diff)
downloadlibyuv-e6a54f223a01bca6489139c211b2905e1deaaacf.tar.gz
Call AllowCommandLineReparsing in unit tests
Allows us to ignore flags passed on to us by Chromium build bots without having to explicitly disable them. (Thanks pbos!) TESTED=webrtc ran modules_unittests with a bogus flag did not result in an error. R=kjellander@chromium.org BUG=libyuv:507 Review URL: https://codereview.chromium.org/1417573002 .
Diffstat (limited to 'unit_test/unit_test.cc')
-rw-r--r--unit_test/unit_test.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/unit_test/unit_test.cc b/unit_test/unit_test.cc
index e053a413..594dd334 100644
--- a/unit_test/unit_test.cc
+++ b/unit_test/unit_test.cc
@@ -304,6 +304,9 @@ LibYUVBaseTest::LibYUVBaseTest() :
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
+ // AllowCommandLineParsing allows us to ignore flags passed on to us by
+ // Chromium build bots without having to explicitly disable them.
+ google::AllowCommandLineReparsing();
google::ParseCommandLineFlags(&argc, &argv, true);
return RUN_ALL_TESTS();
}