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/hash | |
parent | Merge pull request #5387 (diff) | |
download | monero-c5d3ea2fef779f0e937237b4a65912f5da7123bb.tar.xz |
tests: add a few try/catch in main to shut coverity up
Diffstat (limited to 'tests/hash')
-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)) |