diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-02 08:39:47 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-02 17:28:44 +0000 |
commit | e5108a294a7d4fd923665e059a6eb90b0ab5a337 (patch) | |
tree | 4069f097660a988018796bcfb90003aca7577887 /tests/net_load_tests | |
parent | Merge pull request #4333 (diff) | |
download | monero-e5108a294a7d4fd923665e059a6eb90b0ab5a337.tar.xz |
Catch more exceptions in dtors
Misc coverity reports
Diffstat (limited to 'tests/net_load_tests')
-rw-r--r-- | tests/net_load_tests/clt.cpp | 2 | ||||
-rw-r--r-- | tests/net_load_tests/srv.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/net_load_tests/clt.cpp b/tests/net_load_tests/clt.cpp index a65e02cab..4ae50d064 100644 --- a/tests/net_load_tests/clt.cpp +++ b/tests/net_load_tests/clt.cpp @@ -628,6 +628,7 @@ TEST_F(net_load_test_clt, permament_open_and_close_and_connections_closed_by_ser int main(int argc, char** argv) { + TRY_ENTRY(); tools::on_startup(); epee::debug::get_set_enable_assert(true, false); //set up logging options @@ -635,4 +636,5 @@ int main(int argc, char** argv) ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); + CATCH_ENTRY_L0("main", 1); } diff --git a/tests/net_load_tests/srv.cpp b/tests/net_load_tests/srv.cpp index 6518d9117..dc3772127 100644 --- a/tests/net_load_tests/srv.cpp +++ b/tests/net_load_tests/srv.cpp @@ -215,6 +215,7 @@ namespace int main(int argc, char** argv) { + TRY_ENTRY(); tools::on_startup(); //set up logging options mlog_configure(mlog_get_default_log_path("net_load_tests_srv.log"), true); @@ -233,4 +234,5 @@ int main(int argc, char** argv) if (!tcp_server.run_server(thread_count, true)) return 2; return 0; + CATCH_ENTRY_L0("main", 1); } |