mirror of
https://github.com/monero-project/monero.git
synced 2025-05-30 11:14:19 -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
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue