summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsnappy.mirrorbot@gmail.com <snappy.mirrorbot@gmail.com@03e5f5b5-db94-4691-08a0-1a8bf15f6143>2011-03-24 19:15:27 +0000
committersnappy.mirrorbot@gmail.com <snappy.mirrorbot@gmail.com@03e5f5b5-db94-4691-08a0-1a8bf15f6143>2011-03-24 19:15:27 +0000
commita57c28a46465a8a0995a05e75099cdcc5f8de306 (patch)
tree5ce140681efd30fc0b7f18c8d65c54d01d9b8fba
parent94cf8cb109cc68fe1e7b634509e8c4bfb46351b0 (diff)
downloadsnappy-a57c28a46465a8a0995a05e75099cdcc5f8de306.tar.gz
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: http://snappy.googlecode.com/svn/trunk@17 03e5f5b5-db94-4691-08a0-1a8bf15f6143
-rw-r--r--snappy-test.h3
1 files changed, 2 insertions, 1 deletions
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