Suppress deprecation warnings in related tests
authorYedidya Feldblum <yfeldblum@fb.com>
Thu, 24 Nov 2016 22:56:49 +0000 (14:56 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Thu, 24 Nov 2016 23:08:36 +0000 (15:08 -0800)
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

folly/test/SingletonBenchmark.cpp
folly/test/SingletonTest.cpp
folly/test/SubprocessTest.cpp

index 5fa38e4bff7f0a2f14fedf0a5fc0e53ed55e6daf..06147e5abe70f6bdd02f6dbe60ad55d887b66814 100644 (file)
@@ -24,6 +24,8 @@
 #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
index 36eb9f6b018351137149e483d62565f26a46bace..aa068911840d49e081023538ae0aed83f3cdde7f 100644 (file)
@@ -30,6 +30,8 @@
 #include <glog/logging.h>
 #include <boost/thread/barrier.hpp>
 
+FOLLY_GCC_DISABLE_WARNING(deprecated-declarations)
+
 using namespace folly;
 
 TEST(Singleton, MissingSingleton) {
index 66b1831957420556ca4c514deb3aaa919c65dcf7..3d29c972e2ae5cd1d290c7dde1163efec09ca592 100644 (file)
@@ -33,6 +33,8 @@
 #include <folly/portability/GTest.h>
 #include <folly/portability/Unistd.h>
 
+FOLLY_GCC_DISABLE_WARNING(deprecated-declarations)
+
 using namespace folly;
 
 TEST(SimpleSubprocessTest, ExitsSuccessfully) {