mirror of
https://github.com/monero-project/monero.git
synced 2025-07-23 06:00:42 -04:00
tests: add a few try/catch in main to shut coverity up
This commit is contained in:
parent
1ef3d05c4a
commit
c5d3ea2fef
4 changed files with 15 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue