Summary:
[Folly] Suppress deprecation warnings in related tests.
When a test specifically exercises a marked-deprecated library or a marked-deprecated part of a library, we do not need to see the deprecation warnings - they are noise.
Specifically, `Singleton` and `Subprocess` have tested but marked-deprecated APIs, so we suppress deprecation warnings in those specific test suites.
Reviewed By: andrewjcg
Differential Revision:
D4230826
fbshipit-source-id:
937b078029cde492906088caa3a9e5eee449bc12
#include <folly/Memory.h>
#include <folly/portability/GFlags.h>
+FOLLY_GCC_DISABLE_WARNING(deprecated-declarations)
+
using namespace folly;
// Benchmarking a normal singleton vs a Meyers singleton vs a Folly
#include <glog/logging.h>
#include <boost/thread/barrier.hpp>
+FOLLY_GCC_DISABLE_WARNING(deprecated-declarations)
+
using namespace folly;
TEST(Singleton, MissingSingleton) {
#include <folly/portability/GTest.h>
#include <folly/portability/Unistd.h>
+FOLLY_GCC_DISABLE_WARNING(deprecated-declarations)
+
using namespace folly;
TEST(SimpleSubprocessTest, ExitsSuccessfully) {