diff options
| author | Riccardo Spagni <ric@spagni.net> | 2019-04-15 09:14:48 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2019-04-15 09:14:48 +0200 |
| commit | 07c173498517ae82e823cc06f87e8b0787a5334a (patch) | |
| tree | 66f34cfa2131a252fc4431989f5fd910f165e63f /tests/difficulty/difficulty.cpp | |
| parent | 89b8ecfc7c88510681b6d354586e68510c150cda (diff) | |
| parent | c5d3ea2fef779f0e937237b4a65912f5da7123bb (diff) | |
| download | monzero-core-07c173498517ae82e823cc06f87e8b0787a5334a.tar.gz monzero-core-07c173498517ae82e823cc06f87e8b0787a5334a.tar.xz monzero-core-07c173498517ae82e823cc06f87e8b0787a5334a.zip | |
Merge pull request #5393
c5d3ea2f tests: add a few try/catch in main to shut coverity up (moneromooo-monero)
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); } |
