port boost exception reporting.

This commit is contained in:
Steven Watanabe
2020-02-21 18:34:37 -05:00
committed by Clayton Calabrese
parent 574ab49496
commit f0681a0703
2 changed files with 3 additions and 3 deletions
@@ -517,8 +517,8 @@ namespace eosio { namespace testing {
try {
if( num_blocks_to_producer_before_shutdown > 0 )
produce_blocks( num_blocks_to_producer_before_shutdown );
if (!skip_validate)
BOOST_REQUIRE_EQUAL( validate(), true );
if (!skip_validate && std::uncaught_exceptions() == 0)
BOOST_CHECK_EQUAL( validate(), true );
} catch( const fc::exception& e ) {
wdump((e.to_detail_string()));
}
+1 -1
View File
@@ -12,7 +12,7 @@
void translate_fc_exception(const fc::exception &e) {
std::cerr << "\033[33m" << e.to_detail_string() << "\033[0m" << std::endl;
BOOST_TEST_FAIL("Caught Unexpected Exception");
throw std::runtime_error("Caught Unexpected Exception");
}
static bool is_verbose = false;