提交 ec9b9fe5 编写于 作者: M Matt Witherspoon

Restore OOB table unit test

上级 74a4c7a0
......@@ -1039,7 +1039,6 @@ BOOST_FIXTURE_TEST_CASE( check_table_maximum, TESTER ) try {
}
produce_blocks(1);
#if 0
{
signed_transaction trx;
action act;
......@@ -1047,7 +1046,7 @@ BOOST_FIXTURE_TEST_CASE( check_table_maximum, TESTER ) try {
act.account = N(tbl);
act.authorization = vector<permission_level>{{N(tbl),config::active_name}};
trx.actions.push_back(act);
set_tapos(trx);
set_transaction_headers(trx);
trx.sign(get_private_key( N(tbl), "active" ), chain_id_type());
push_transaction(trx);
}
......@@ -1061,14 +1060,12 @@ BOOST_FIXTURE_TEST_CASE( check_table_maximum, TESTER ) try {
act.account = N(tbl);
act.authorization = vector<permission_level>{{N(tbl),config::active_name}};
trx.actions.push_back(act);
set_tapos(trx);
set_transaction_headers(trx);
trx.sign(get_private_key( N(tbl), "active" ), chain_id_type());
//an element that is out of range and has no mmap access permission either (should be a trapped segv)
BOOST_CHECK_EXCEPTION(push_transaction(trx), eosio::chain::wasm_execution_error, [](const eosio::chain::wasm_execution_error &e) {return true;});
}
#endif
} FC_LOG_AND_RETHROW()
BOOST_FIXTURE_TEST_CASE( protected_globals, TESTER ) try {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册