diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-03 16:15:55 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-03 16:24:09 +0000 |
| commit | c5d3ea2fef779f0e937237b4a65912f5da7123bb (patch) | |
| tree | daec393a7daaa9cc6ee1f8f07f12909bcb0417b7 /tests/difficulty/difficulty.cpp | |
| parent | 1ef3d05c4a753166482877d8434ad49a1c38155e (diff) | |
| download | monzero-core-c5d3ea2fef779f0e937237b4a65912f5da7123bb.tar.gz monzero-core-c5d3ea2fef779f0e937237b4a65912f5da7123bb.tar.xz monzero-core-c5d3ea2fef779f0e937237b4a65912f5da7123bb.zip | |
tests: add a few try/catch in main to shut coverity up
Diffstat (limited to 'tests/difficulty/difficulty.cpp')
| -rw-r--r-- | tests/difficulty/difficulty.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/difficulty/difficulty.cpp b/tests/difficulty/difficulty.cpp index 9985b8710..11ce0bd73 100644 --- a/tests/difficulty/difficulty.cpp +++ b/tests/difficulty/difficulty.cpp @@ -36,6 +36,7 @@ #include <algorithm> #include <stdexcept> +#include "misc_log_ex.h" #include "cryptonote_config.h" #include "cryptonote_basic/difficulty.h" @@ -82,6 +83,8 @@ static int test_wide_difficulty(const char *filename) } int main(int argc, char *argv[]) { + TRY_ENTRY(); + if (argc < 2) { cerr << "Wrong arguments" << endl; return 1; @@ -136,4 +139,6 @@ int main(int argc, char *argv[]) { data.clear(fstream::badbit); } return 0; + + CATCH_ENTRY_L0("main", 1); } |
