From 79d7f0f5402c528abb67d1dda579b6c421e68d5e Mon Sep 17 00:00:00 2001 From: Phil Willoughby Date: Wed, 17 Aug 2016 11:38:06 -0700 Subject: [PATCH] Fix folly contbuild Summary: Started failing when we turned on unused-result errors. Reviewed By: yfeldblum Differential Revision: D3728565 fbshipit-source-id: b12aee8d99f725f1a1cfaf30e9afa66bd05f7989 --- folly/test/ConvTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.34.1