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
This commit is contained in:
@@ -71,7 +71,8 @@
|
|||||||
#define DEFINE_int32(flag_name, default_value, description) \
|
#define DEFINE_int32(flag_name, default_value, description) \
|
||||||
static int FLAGS_ ## flag_name = default_value;
|
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
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user