From: Phil Willoughby Date: Wed, 17 Aug 2016 18:38:06 +0000 (-0700) Subject: Fix folly contbuild X-Git-Tag: v2016.08.22.00~18 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;ds=sidebyside;h=79d7f0f5402c528abb67d1dda579b6c421e68d5e;p=folly.git Fix folly contbuild Summary: Started failing when we turned on unused-result errors. Reviewed By: yfeldblum Differential Revision: D3728565 fbshipit-source-id: b12aee8d99f725f1a1cfaf30e9afa66bd05f7989 --- diff --git a/folly/test/ConvTest.cpp b/folly/test/ConvTest.cpp index 2ff1ab08..feaf7496 100644 --- a/folly/test/ConvTest.cpp +++ b/folly/test/ConvTest.cpp @@ -732,7 +732,7 @@ TEST(Conv, UnsignedEnumClass) { EXPECT_EQ(E::x, to(3000000000U)); EXPECT_EQ(E::x, to("3000000000")); E e; - parseTo("3000000000", e); + EXPECT_TRUE(parseTo("3000000000", e).hasValue()); EXPECT_EQ(E::x, e); EXPECT_THROW(to(E::x), std::range_error); }