mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
unit_tests: catch unhandled exceptions
Coverity 182560
This commit is contained in:
parent
ea7f954381
commit
418a993618
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue