Skip to content

Commit

Permalink
unit_tests: catch unhandled exceptions
Browse files Browse the repository at this point in the history
Coverity 182560
  • Loading branch information
moneromooo-monero committed Sep 27, 2018
1 parent ea7f954 commit 418a993
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit_tests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();
}

0 comments on commit 418a993

Please sign in to comment.