aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-10-26 08:23:02 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-11-27 19:52:38 +0000
commitfa16df9996700306d0976180156c320b8d529faf (patch)
treeda1286841e6215858dfb5098c54864632dde41e0
parentnode_rpc_proxy: init some new rpc payment fields in invalidate (diff)
downloadmonero-fa16df9996700306d0976180156c320b8d529faf.tar.xz
make_test_signature: exit nicely on top level exception
Coverity 205411
-rw-r--r--tests/functional_tests/make_test_signature.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/functional_tests/make_test_signature.cc b/tests/functional_tests/make_test_signature.cc
index 8c0333233..789523de5 100644
--- a/tests/functional_tests/make_test_signature.cc
+++ b/tests/functional_tests/make_test_signature.cc
@@ -32,6 +32,7 @@
int main(int argc, const char **argv)
{
+ TRY_ENTRY();
if (argc > 2)
{
fprintf(stderr, "usage: %s <secret_key>\n", argv[0]);
@@ -57,4 +58,5 @@ int main(int argc, const char **argv)
std::string signature = cryptonote::make_rpc_payment_signature(skey);
printf("%s\n", signature.c_str());
return 0;
+ CATCH_ENTRY_L0("main()", 1);
}