From 6be367ea6dc4127b3b0a95d71d8dbd3bfd0225ed Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 14 Oct 2016 12:44:22 -0700 Subject: [PATCH] Fix test so that the encrypted wallet is output to the test_bitcoin -datadir folder. --- src/test/rpc_wallet_tests.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/rpc_wallet_tests.cpp b/src/test/rpc_wallet_tests.cpp index 5a4bd3a00..c956c7e8c 100644 --- a/src/test/rpc_wallet_tests.cpp +++ b/src/test/rpc_wallet_tests.cpp @@ -29,6 +29,7 @@ #include #include #include +#include using namespace std; using namespace json_spirit; @@ -1069,6 +1070,8 @@ BOOST_AUTO_TEST_CASE(rpc_wallet_encrypted_wallet_zkeys) SecureString strWalletPass; strWalletPass.reserve(100); strWalletPass = "hello"; + + boost::filesystem::current_path(GetArg("-datadir","/tmp/thisshouldnothappen")); BOOST_CHECK(pwalletMain->EncryptWallet(strWalletPass)); // Verify we can still list the keys imported