From: Date: Mon, 5 Jan 2009 05:56:05 +0000 (+0000) Subject: Initialize gflags in signalhandler_unittest. X-Git-Tag: accepted/tizen/5.0/unified/20181102.024921~211 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68e9555c91f6917a84cabaa12dd183ab4a59e15f;p=platform%2Fupstream%2Fglog.git Initialize gflags in signalhandler_unittest. git-svn-id: https://google-glog.googlecode.com/svn/trunk@25 eb4d4688-79bd-11dd-afb4-1d65580434c0 --- diff --git a/src/signalhandler_unittest.cc b/src/signalhandler_unittest.cc index eb078a0..f9312e4 100644 --- a/src/signalhandler_unittest.cc +++ b/src/signalhandler_unittest.cc @@ -29,6 +29,9 @@ void WriteToStdout(const char* data, int size) { int main(int argc, char **argv) { #if defined(HAVE_STACKTRACE) && defined(HAVE_SYMBOLIZE) InitGoogleLogging(argv[0]); +#ifdef HAVE_LIB_GFLAGS + ParseCommandLineFlags(&argc, &argv, true); +#endif InstallFailureSignalHandler(); const std::string command = argc > 1 ? argv[1] : "none"; if (command == "segv") {