tests: add a few try/catch in main to shut coverity up

This commit is contained in:
moneromooo-monero 2019-04-03 16:15:55 +00:00
parent 1ef3d05c4a
commit c5d3ea2fef
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
4 changed files with 15 additions and 0 deletions

View file

@ -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))