try {
container[0].throwException();
- } catch (std::runtime_error& e) {
+ } catch (std::runtime_error& err) {
std::string expected = "payload";
- std::string actual = e.what();
+ std::string actual = err.what();
EXPECT_EQ(expected, actual);
}
}
EXPECT_THROW(std::rethrow_exception(eptr), IntException);
// Test with empty ew.
-
- // Disabling pending fix for fbandroid: t13822116
- /*
exception_wrapper empty_ew;
eptr = empty_ew.getExceptionPtr();
- EXPECT_DEATH(std::rethrow_exception(eptr), "exception");
- */
+ EXPECT_FALSE(eptr);
}
TEST(ExceptionWrapper, with_exception_deduction) {