aboutsummaryrefslogtreecommitdiff
path: root/tests/hash-target.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-03 16:15:55 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-03 16:24:09 +0000
commitc5d3ea2fef779f0e937237b4a65912f5da7123bb (patch)
treedaec393a7daaa9cc6ee1f8f07f12909bcb0417b7 /tests/hash-target.cpp
parentMerge pull request #5387 (diff)
downloadmonero-c5d3ea2fef779f0e937237b4a65912f5da7123bb.tar.xz
tests: add a few try/catch in main to shut coverity up
Diffstat (limited to 'tests/hash-target.cpp')
-rw-r--r--tests/hash-target.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/hash-target.cpp b/tests/hash-target.cpp
index 12acc5a67..1e988c302 100644
--- a/tests/hash-target.cpp
+++ b/tests/hash-target.cpp
@@ -32,6 +32,7 @@
#include <cstdlib>
#include <cstring>
#include <limits>
+#include "misc_log_ex.h"
#include "crypto/hash.h"
#include "cryptonote_basic/difficulty.h"
@@ -39,6 +40,7 @@ using namespace std;
using cryptonote::check_hash;
int main(int argc, char *argv[]) {
+ TRY_ENTRY();
crypto::hash h;
for (cryptonote::difficulty_type diff = 1;; diff += 1 + (diff >> 8)) {
for (uint16_t b = 0; b < 256; b++) {
@@ -83,4 +85,5 @@ int main(int argc, char *argv[]) {
}
}
return 0;
+ CATCH_ENTRY_L0("main", 1);
}