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/hash/main.cpp | |
parent | Merge pull request #5392 (diff) | |
parent | tests: add a few try/catch in main to shut coverity up (diff) | |
download | monero-07c173498517ae82e823cc06f87e8b0787a5334a.tar.xz |
Merge pull request #5393
c5d3ea2f tests: add a few try/catch in main to shut coverity up (moneromooo-monero)
Diffstat (limited to 'tests/hash/main.cpp')
-rw-r--r-- | tests/hash/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/hash/main.cpp b/tests/hash/main.cpp index adf1bd9c4..d62098a60 100644 --- a/tests/hash/main.cpp +++ b/tests/hash/main.cpp @@ -35,6 +35,7 @@ #include <string> #include <cfenv> +#include "misc_log_ex.h" #include "warnings.h" #include "crypto/hash.h" #include "crypto/variant2_int_sqrt.h" @@ -89,6 +90,8 @@ int test_variant2_int_sqrt(); int test_variant2_int_sqrt_ref(); int main(int argc, char *argv[]) { + TRY_ENTRY(); + hash_f *f; hash_func *hf; fstream input; @@ -183,6 +186,7 @@ int main(int argc, char *argv[]) { } } return error ? 1 : 0; + CATCH_ENTRY_L0("main", 1); } #if defined(__x86_64__) || (defined(_MSC_VER) && defined(_WIN64)) |