X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2Ffutures%2Ftest%2FPromiseTest.cpp;h=858f9533bf63cf5058279051d7575ba0953c08fd;hp=a48e8a00b72d1807a3690a0e334df9a19792ad19;hb=7da4ef82aee382777bb50aadd4af14a482739d10;hpb=4bfbe0a10e914c3626e16cfdb9e87508e63b065f diff --git a/folly/futures/test/PromiseTest.cpp b/folly/futures/test/PromiseTest.cpp index a48e8a00..858f9533 100644 --- a/folly/futures/test/PromiseTest.cpp +++ b/folly/futures/test/PromiseTest.cpp @@ -141,7 +141,12 @@ TEST(Promise, setException) { { Promise p; auto f = p.getFuture(); + // Calling setException() with an exception_ptr is deprecated, + // but don't complain about this in the test for this function. + FOLLY_PUSH_WARNING + FOLLY_GCC_DISABLE_WARNING("-Wdeprecated-declarations") p.setException(std::make_exception_ptr(eggs)); + FOLLY_POP_WARNING EXPECT_THROW(f.value(), eggs_t); } {