port boost exception reporting.
This commit is contained in:
committed by
Clayton Calabrese
parent
574ab49496
commit
f0681a0703
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user