Fix test so that the encrypted wallet is output to the test_bitcoin -datadir folder.
This commit is contained in:
parent
32bf097f90
commit
6be367ea6d
|
@ -29,6 +29,7 @@
|
||||||
#include <boost/algorithm/string.hpp>
|
#include <boost/algorithm/string.hpp>
|
||||||
#include <boost/test/unit_test.hpp>
|
#include <boost/test/unit_test.hpp>
|
||||||
#include <boost/format.hpp>
|
#include <boost/format.hpp>
|
||||||
|
#include <boost/filesystem.hpp>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace json_spirit;
|
using namespace json_spirit;
|
||||||
|
@ -1069,6 +1070,8 @@ BOOST_AUTO_TEST_CASE(rpc_wallet_encrypted_wallet_zkeys)
|
||||||
SecureString strWalletPass;
|
SecureString strWalletPass;
|
||||||
strWalletPass.reserve(100);
|
strWalletPass.reserve(100);
|
||||||
strWalletPass = "hello";
|
strWalletPass = "hello";
|
||||||
|
|
||||||
|
boost::filesystem::current_path(GetArg("-datadir","/tmp/thisshouldnothappen"));
|
||||||
BOOST_CHECK(pwalletMain->EncryptWallet(strWalletPass));
|
BOOST_CHECK(pwalletMain->EncryptWallet(strWalletPass));
|
||||||
|
|
||||||
// Verify we can still list the keys imported
|
// Verify we can still list the keys imported
|
||||||
|
|
Loading…
Reference in New Issue