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
commit98004ca9afc62a3279dfe9d9a359083f61db437f (patch)
tree5ce140681efd30fc0b7f18c8d65c54d01d9b8fba
parent444a6c5f72d6f8d8f7213a5bcc08b26606eb9934 (diff)
downloadsnappy-98004ca9afc62a3279dfe9d9a359083f61db437f.tar.gz
snappy-98004ca9afc62a3279dfe9d9a359083f61db437f.tar.bz2
snappy-98004ca9afc62a3279dfe9d9a359083f61db437f.zip
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
-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