mirror of
https://github.com/monero-project/monero.git
synced 2025-05-02 21:34:53 -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
|
@ -36,6 +36,7 @@
|
|||
#include <algorithm>
|
||||
#include <stdexcept>
|
||||
|
||||
#include "misc_log_ex.h"
|
||||
#include "cryptonote_config.h"
|
||||
#include "cryptonote_basic/difficulty.h"
|
||||
|
||||
|
@ -82,6 +83,8 @@ static int test_wide_difficulty(const char *filename)
|
|||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
TRY_ENTRY();
|
||||
|
||||
if (argc < 2) {
|
||||
cerr << "Wrong arguments" << endl;
|
||||
return 1;
|
||||
|
@ -136,4 +139,6 @@ int main(int argc, char *argv[]) {
|
|||
data.clear(fstream::badbit);
|
||||
}
|
||||
return 0;
|
||||
|
||||
CATCH_ENTRY_L0("main", 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue