mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
unit_tests: catch unhandled exceptions
Coverity 182560
This commit is contained in:
parent
ea7f954381
commit
418a993618
@ -53,6 +53,8 @@ namespace cryptonote { template class t_cryptonote_protocol_handler<cryptonote::
|
|||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
|
TRY_ENTRY();
|
||||||
|
|
||||||
tools::on_startup();
|
tools::on_startup();
|
||||||
epee::string_tools::set_module_name_and_folder(argv[0]);
|
epee::string_tools::set_module_name_and_folder(argv[0]);
|
||||||
mlog_configure(mlog_get_default_log_path("unit_tests.log"), true);
|
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);
|
unit_test::data_dir = command_line::get_arg(vm, arg_data_dir);
|
||||||
|
|
||||||
|
CATCH_ENTRY_L0("main", 1);
|
||||||
|
|
||||||
return RUN_ALL_TESTS();
|
return RUN_ALL_TESTS();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user