aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-27 15:17:49 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-27 17:29:09 +0000
commit418a9936182fddd0c6acc5b81f6772ec37f4e8a8 (patch)
tree31d8264c448b91c89a7b41e19757a22222e700f7 /tests
parentthreadpool: do not propagate exceptions through the dtor (diff)
downloadmonero-418a9936182fddd0c6acc5b81f6772ec37f4e8a8.tar.xz
unit_tests: catch unhandled exceptions
Coverity 182560
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit_tests/main.cpp b/tests/unit_tests/main.cpp
index 13b62cbb4..f7251a09e 100644
--- a/tests/unit_tests/main.cpp
+++ b/tests/unit_tests/main.cpp
@@ -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();
}