diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-29 12:18:09 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-11 11:10:18 +0000 |
| commit | 0eee6cd7fec2e9f98de2b9ba39ef3421cbeaa53b (patch) | |
| tree | 611002cec0abc23d91ead9e03cb710a39ff49029 /tests/block_weight | |
| parent | 4b3bb829c25e86fb87a4bdce2cfb5d70314b2971 (diff) | |
| download | monzero-core-0eee6cd7fec2e9f98de2b9ba39ef3421cbeaa53b.tar.gz monzero-core-0eee6cd7fec2e9f98de2b9ba39ef3421cbeaa53b.tar.xz monzero-core-0eee6cd7fec2e9f98de2b9ba39ef3421cbeaa53b.zip | |
block_weight: catch exceptions in main for clean exit on error
Diffstat (limited to 'tests/block_weight')
| -rw-r--r-- | tests/block_weight/block_weight.cpp | 2 |
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); } |
