Tests failures on WSL/Ubuntu
Environment: Windows10 with WSL/Ubuntu. Repository checked out at current master (6be6a98b) and v.0.21.0 tag.
In a clean repository (just cloned) I ran the usual build process:
mkdir build
cd build
cmake -GNinja ..
ninja
ninja test_bitcoin
and then
test/functional/test_runner.py
Ran the tests several times (5 or 6), and everytime I get errors on these tests:
wallet_multiwallet.py | ✖ Failed | 8 s
wallet_multiwallet.py --usecli | ✖ Failed | 8 s
ALL | ✖ Failed | 545 s (accumulated)
This seems to be an actual functional failure, and is relative to Windows (and not WSL). Multiple bitcoind
instances with different -datadir
s can point to the same -walletdir
, which should not be possible, and is not possible on other platforms. It could possibly lead to data corruption.
The result is the same if I run with the --extended
flag.
Also, on two instances of testing I also got two random tests to fail:
feature_notifications.py | ✖ Failed | 10 s
interface_rest.py | ✖ Failed | 40 s
Moreover the ninja check
command fails with the following output.
[66/145] bitcoin: testing scheduler_tests
FAILED: src/test/CMakeFiles/check-bitcoin-scheduler_tests
cd /home/mtrycz/git/deleteme/bitcoin-cash-node/build/src/test && /home/mtrycz/git/deleteme/bitcoin-cash-node/build/src/test/run-bitcoin-scheduler_tests.sh
Running 3 test cases...
../src/test/scheduler_tests.cpp(177): error: in "scheduler_tests/schedule_every": check counter == 0 has failed [42 != 0]
*** 1 failure is detected in the test module "Bitcoin ABC unit tests"
[79/145] bitcoin: testing avalanche_tests
ninja: build stopped: subcommand failed.
Moreover ./src/test/test_bitcoin
fails with the following output
Running 455 test cases...
../src/test/util_tests.cpp(1344): error: in "util_tests/test_LockDirectory": check (bool)ch == false has failed [true != false]
../src/test/util_tests.cpp(1358): error: in "util_tests/test_LockDirectory": check LockDirectory(dirname, lockname, true) == false has failed [true != false]
*** 2 failures are detected in the test module "Bitcoin ABC unit tests"