Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
no longer consider unspecified exceptions acceptable for table_init_oob
Browse files Browse the repository at this point in the history
  • Loading branch information
spoonincode committed Aug 8, 2019
1 parent 30d2762 commit fc17f10
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions unittests/wasm_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -702,9 +702,7 @@ BOOST_FIXTURE_TEST_CASE( table_init_oob, TESTER ) try {

//the unspecified_exception_code comes from WAVM, which manages to throw a WAVM specific exception
// up to where exec_one captures it and doesn't understand it
BOOST_CHECK_EXCEPTION(push_transaction(trx), fc::exception, [](auto& e) {
return e.code() == unspecified_exception_code || e.code() == wasm_execution_error::code_value;
});
BOOST_CHECK_THROW(push_transaction(trx), eosio::chain::wasm_execution_error);
};

set_code(N(tableinitoob), table_init_oob_wast);
Expand Down

0 comments on commit fc17f10

Please sign in to comment.