unit_tests: catch unhandled exceptions

Coverity 182560
This commit is contained in:
moneromooo-monero 2018-09-27 15:17:49 +00:00
parent ea7f954381
commit 418a993618
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,8 @@ namespace cryptonote { template class t_cryptonote_protocol_handler<cryptonote::
int main(int argc, char** argv)
{
TRY_ENTRY();
tools::on_startup();
epee::string_tools::set_module_name_and_folder(argv[0]);
mlog_configure(mlog_get_default_log_path("unit_tests.log"), true);
@ -76,5 +78,7 @@ int main(int argc, char** argv)
unit_test::data_dir = command_line::get_arg(vm, arg_data_dir);
CATCH_ENTRY_L0("main", 1);
return RUN_ALL_TESTS();
}