aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-04-11 13:15:20 +0200
committerRiccardo Spagni <ric@spagni.net>2019-04-11 13:15:20 +0200
commit716f5a2a6ad494303ab134c29e786a4bd4aa01af (patch)
tree73cde00653a5e208eaaf04ab1f98fc9b689a761e /tests
parentMerge pull request #5383 (diff)
parentblock_weight: catch exceptions in main for clean exit on error (diff)
downloadmonero-716f5a2a6ad494303ab134c29e786a4bd4aa01af.tar.xz
Merge pull request #5384
0eee6cd7 block_weight: catch exceptions in main for clean exit on error (moneromooo-monero) 4b3bb829 epee: init a new ssl related variable in ctor (moneromooo-monero)
Diffstat (limited to 'tests')
-rw-r--r--tests/block_weight/block_weight.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/block_weight/block_weight.cpp b/tests/block_weight/block_weight.cpp
index 7b3fdfe57..f193133da 100644
--- a/tests/block_weight/block_weight.cpp
+++ b/tests/block_weight/block_weight.cpp
@@ -195,8 +195,10 @@ static void test(test_t t, uint64_t blocks)
int main()
{
+ TRY_ENTRY();
test(test_max, 2 * LONG_TERM_BLOCK_WEIGHT_WINDOW);
test(test_lcg, 9 * LONG_TERM_BLOCK_WEIGHT_WINDOW);
test(test_min, 1 * LONG_TERM_BLOCK_WEIGHT_WINDOW);
return 0;
+ CATCH_ENTRY_L0("main", 1);
}