You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running one of these two tests, the runner fails with an error that looks like this:
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
what(): boost::filesystem::remove: The process cannot access the file because it is being used by another process: "C:\Windows\TEMP\test_bitcoin_1540957381_88827"
Also, if test_bitcoin.exe is run with a group of tests (e.g. without the --run_test flag), it halts when it hits this error instead of running the rest of the tests.
The version of Zcash you were using:
2.0.1
Machine specs:
Windows 10
The text was updated successfully, but these errors were encountered:
Save and restore current_path in TestingSetup constructor/destructor
In issue #3653 , the affected tests change their current working directory to a temporary directory that is created in the TestingSetup constructor and deleted in the destructor. In Windows it seems to cause a problem when a process attempts to delete its current working directory.
This change fixes the issue by saving the path of the current working directory in the constructor, and restoring the working directory to that path in the destructor before deleting the temporary directory.
Save and restore current_path in TestingSetup constructor/destructor
In issue #3653 , the affected tests change their current working directory to a temporary directory that is created in the TestingSetup constructor and deleted in the destructor. In Windows it seems to cause a problem when a process attempts to delete its current working directory.
This change fixes the issue by saving the path of the current working directory in the constructor, and restoring the working directory to that path in the destructor before deleting the temporary directory.
Describe the issue
For these two tests:
rpc_wallet_tests/rpc_wallet_encrypted_wallet_zkeys
rpc_wallet_tests/rpc_wallet_encrypted_wallet_sapzkeys
The tests fail, and cause the test runner to halt.
Can you reliably reproduce the issue?
yes
If so, please list the steps to reproduce below:
Expected behaviour
The tests should pass
Actual behaviour + errors
After running one of these two tests, the runner fails with an error that looks like this:
Also, if
test_bitcoin.exe
is run with a group of tests (e.g. without the --run_test flag), it halts when it hits this error instead of running the rest of the tests.The version of Zcash you were using:
2.0.1
Machine specs:
Windows 10
The text was updated successfully, but these errors were encountered: