MB-20586: DefragmenterTest.MappedMemory: Fix on OS X 12/67312/6
authorDave Rigby <daver@couchbase.com>
Fri, 26 Aug 2016 12:39:59 +0000 (13:39 +0100)
committerDave Rigby <daver@couchbase.com>
Thu, 8 Sep 2016 10:11:32 +0000 (10:11 +0000)
commit384363eeb53c813698f6f4435f7d628d37dc4ef0
treeea5649e72347f3ab4d4f901283f75e9277b0d2e6
parente58653a3e87bae22cd75e601759a142c2a1b64dc
MB-20586: DefragmenterTest.MappedMemory: Fix on OS X

This test currently fails as it does not have a way of tracking memory
usage, due to us not initializing the memory hooks (which installs a
custom zone allocator).

Fix by initializing the allocator before we run any tests in this
suite.

Change-Id: I3b567001b070483d19d16ff1787d29ebd9669bfa
Reviewed-on: http://review.couchbase.org/67312
Well-Formed: buildbot <build@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Jim Walker <jim@couchbase.com>
tests/module_tests/defragmenter_test.cc