Canonicalize some aspects of the folly/experimental/hazptr test v2016.11.28.00
authorYedidya Feldblum <yfeldblum@fb.com>
Mon, 28 Nov 2016 06:02:48 +0000 (22:02 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Mon, 28 Nov 2016 06:08:25 +0000 (22:08 -0800)
commit7d70d8d6e2d5b11b9c4e9ab3908d19a87b2d17d2
tree964a010fed5aa2f62de3537a29f481da533aef31
parentc520b4fa0fbbcdf69fd951d116b317c574f6f0e1
Canonicalize some aspects of the folly/experimental/hazptr test

Summary:
[Folly] Canonicalize some aspects of the `folly/experimental/hazptr` test.

* Remove the custom `main()` and use the provided weak symbol, either from `folly/test/common/TestMain.cpp` or from `gtest` depending on the build.
* Extract some common setup/teardown (just debug logging in this case) to a test fixture.

Reviewed By: Orvid

Differential Revision: D4234154

fbshipit-source-id: 25613cba0ad6c9147714d98150e013fba1a64d46
folly/experimental/hazptr/test/HazptrTest.cpp