From 98004ca9afc62a3279dfe9d9a359083f61db437f Mon Sep 17 00:00:00 2001 From: "snappy.mirrorbot@gmail.com" Date: Thu, 24 Mar 2011 19:15:27 +0000 Subject: Fix public issue #19: Fix unit test when Google Test is installed but the gflags package isn't (Google Test is not properly initialized). Patch by Martin Gieseking. R=csilvers DELTA=2 (1 added, 0 deleted, 1 changed) Revision created by MOE tool push_codebase. MOE_MIGRATION=1033 git-svn-id: https://snappy.googlecode.com/svn/trunk@17 03e5f5b5-db94-4691-08a0-1a8bf15f6143 --- snappy-test.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/snappy-test.h b/snappy-test.h index 48e2215..513b6a4 100644 --- a/snappy-test.h +++ b/snappy-test.h @@ -71,7 +71,8 @@ #define DEFINE_int32(flag_name, default_value, description) \ static int FLAGS_ ## flag_name = default_value; -#define InitGoogle(argv0, argc, argv, remove_flags) +#define InitGoogle(argv0, argc, argv, remove_flags) \ + INIT_GTEST(argc, argv) #endif -- cgit v1.2.3