diff options
author | Gert-Jaap Glasbergen <gertjaap@gertjaap.org> | 2019-06-24 17:14:43 +0200 |
---|---|---|
committer | Gert-Jaap Glasbergen <gertjaap@gertjaap.org> | 2019-07-03 14:03:21 +0200 |
commit | 7a0c2242890549b6dddac4cc6f1840a528469f2a (patch) | |
tree | faab75894c151d1cdebdb43b360078ff943e1bfd /src/wallet/test | |
parent | c8fee6769a106bb5fbcdd3674fd0444b01d3391c (diff) |
Suppress output in test_bitcoin for expected errors
Diffstat (limited to 'src/wallet/test')
-rw-r--r-- | src/wallet/test/init_tests.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wallet/test/init_tests.cpp b/src/wallet/test/init_tests.cpp index 67e2847963..eace53037a 100644 --- a/src/wallet/test/init_tests.cpp +++ b/src/wallet/test/init_tests.cpp @@ -4,6 +4,7 @@ #include <boost/test/unit_test.hpp> +#include <noui.h> #include <test/setup_common.h> #include <wallet/test/init_test_fixture.h> @@ -32,21 +33,27 @@ BOOST_AUTO_TEST_CASE(walletinit_verify_walletdir_custom) BOOST_AUTO_TEST_CASE(walletinit_verify_walletdir_does_not_exist) { SetWalletDir(m_walletdir_path_cases["nonexistent"]); + noui_suppress(); bool result = m_chain_client->verify(); + noui_reconnect(); BOOST_CHECK(result == false); } BOOST_AUTO_TEST_CASE(walletinit_verify_walletdir_is_not_directory) { SetWalletDir(m_walletdir_path_cases["file"]); + noui_suppress(); bool result = m_chain_client->verify(); + noui_reconnect(); BOOST_CHECK(result == false); } BOOST_AUTO_TEST_CASE(walletinit_verify_walletdir_is_not_relative) { SetWalletDir(m_walletdir_path_cases["relative"]); + noui_suppress(); bool result = m_chain_client->verify(); + noui_reconnect(); BOOST_CHECK(result == false); } |