Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 c-tests are failing on a win cross-build from the cmake-staging branch #55

Closed
1 task done
pablomartin4btc opened this issue Nov 24, 2023 · 6 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@pablomartin4btc
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current behaviour

Performing tests on PR #54 cross-built the binaries for Windows on WSL with Ubuntu 22.04, due to 2 ctests failing and following suggestion from @hebasto to check cmake-staging I see the same tests are also failing on this cmake base branch:

The following tests FAILED:
          3 - bench_sanity_check_high_priority (Failed)
         87 - streams_tests:streams_tests.cpp (Failed)
Errors while running CTest

ctest full results
ctest -j $(nproc)
Test project /home/ubunpolk/src/bitcoin-hebasto/build
        Start   1: util_test_runner
        Start   2: util_rpcauth_test
        Start   3: bench_sanity_check_high_priority
        Start   4: addrman_tests:addrman_tests.cpp
        Start   5: allocator_tests:allocator_tests.cpp
        Start   6: amount_tests:amount_tests.cpp
        Start   7: argsman_tests:argsman_tests.cpp
        Start   8: arith_uint256_tests:arith_uint256_tests.cpp
        Start   9: banman_tests:banman_tests.cpp
        Start  10: base32_tests:base32_tests.cpp
        Start  11: base58_tests:base58_tests.cpp
        Start  12: base64_tests:base64_tests.cpp
        Start  13: bech32_tests:bech32_tests.cpp
        Start  14: bip32_tests:bip32_tests.cpp
        Start  15: bip324_tests:bip324_tests.cpp
        Start  16: blockchain_tests:blockchain_tests.cpp
  1/125 Test   #2: util_rpcauth_test ...........................................................   Passed    0.05 sec
        Start  17: blockencodings_tests:blockencodings_tests.cpp
  2/125 Test   #5: allocator_tests:allocator_tests.cpp .........................................   Passed    1.93 sec
        Start  18: blockfilter_index_tests:blockfilter_index_tests.cpp
  3/125 Test   #6: amount_tests:amount_tests.cpp ...............................................   Passed    1.93 sec
        Start  19: blockfilter_tests:blockfilter_tests.cpp
  4/125 Test   #8: arith_uint256_tests:arith_uint256_tests.cpp .................................   Passed    1.93 sec
        Start  20: blockmanager_tests:blockmanager_tests.cpp
  5/125 Test  #12: base64_tests:base64_tests.cpp ...............................................   Passed    1.93 sec
        Start  21: bloom_tests:bloom_tests.cpp
  6/125 Test   #9: banman_tests:banman_tests.cpp ...............................................   Passed    1.94 sec
        Start  22: bswap_tests:bswap_tests.cpp
  7/125 Test  #10: base32_tests:base32_tests.cpp ...............................................   Passed    1.94 sec
        Start  23: checkqueue_tests:checkqueue_tests.cpp
  8/125 Test  #16: blockchain_tests:blockchain_tests.cpp .......................................   Passed    2.02 sec
        Start  24: coins_tests:coins_tests.cpp
  9/125 Test  #13: bech32_tests:bech32_tests.cpp ...............................................   Passed    2.06 sec
        Start  25: coinstatsindex_tests:coinstatsindex_tests.cpp
 10/125 Test  #14: bip32_tests:bip32_tests.cpp .................................................   Passed    2.07 sec
        Start  26: compilerbug_tests:compilerbug_tests.cpp
 11/125 Test  #11: base58_tests:base58_tests.cpp ...............................................   Passed    2.20 sec
        Start  27: compress_tests:compress_tests.cpp
 12/125 Test  #17: blockencodings_tests:blockencodings_tests.cpp ...............................   Passed    2.17 sec
        Start  28: crypto_tests:crypto_tests.cpp
 13/125 Test   #4: addrman_tests:addrman_tests.cpp .............................................   Passed    2.47 sec
        Start  29: cuckoocache_tests:cuckoocache_tests.cpp
 14/125 Test   #3: bench_sanity_check_high_priority ............................................***Failed    2.68 sec
        Start  30: dbwrapper_tests:dbwrapper_tests.cpp
 15/125 Test  #15: bip324_tests:bip324_tests.cpp ...............................................   Passed    2.74 sec
        Start  31: denialofservice_tests:denialofservice_tests.cpp
 16/125 Test  #19: blockfilter_tests:blockfilter_tests.cpp .....................................   Passed    1.48 sec
        Start  32: descriptor_tests:descriptor_tests.cpp
 17/125 Test  #21: bloom_tests:bloom_tests.cpp .................................................   Passed    1.48 sec
        Start  33: disconnected_transactions:disconnected_transactions.cpp
 18/125 Test  #22: bswap_tests:bswap_tests.cpp .................................................   Passed    1.51 sec
        Start  34: flatfile_tests:flatfile_tests.cpp
 19/125 Test  #26: compilerbug_tests:compilerbug_tests.cpp .....................................   Passed    1.68 sec
        Start  35: fs_tests:fs_tests.cpp
 20/125 Test  #27: compress_tests:compress_tests.cpp ...........................................   Passed    1.85 sec
        Start  36: getarg_tests:getarg_tests.cpp
 21/125 Test  #31: denialofservice_tests:denialofservice_tests.cpp .............................   Passed    1.56 sec
        Start  37: hash_tests:hash_tests.cpp
 22/125 Test   #7: argsman_tests:argsman_tests.cpp .............................................   Passed    4.48 sec
        Start  38: headers_sync_chainwork_tests:headers_sync_chainwork_tests.cpp
 23/125 Test  #30: dbwrapper_tests:dbwrapper_tests.cpp .........................................   Passed    1.81 sec
        Start  39: httpserver_tests:httpserver_tests.cpp
 24/125 Test  #34: flatfile_tests:flatfile_tests.cpp ...........................................   Passed    1.42 sec
        Start  40: i2p_tests:i2p_tests.cpp
 25/125 Test  #29: cuckoocache_tests:cuckoocache_tests.cpp .....................................   Passed    2.76 sec
        Start  41: interfaces_tests:interfaces_tests.cpp
 26/125 Test  #35: fs_tests:fs_tests.cpp .......................................................   Passed    1.48 sec
        Start  42: key_io_tests:key_io_tests.cpp
 27/125 Test  #32: descriptor_tests:descriptor_tests.cpp .......................................   Passed    2.18 sec
        Start  43: key_tests:key_tests.cpp
 28/125 Test  #36: getarg_tests:getarg_tests.cpp ...............................................   Passed    1.67 sec
        Start  44: logging_tests:logging_tests.cpp
 29/125 Test  #37: hash_tests:hash_tests.cpp ...................................................   Passed    1.49 sec
        Start  45: mempool_tests:mempool_tests.cpp
 30/125 Test  #39: httpserver_tests:httpserver_tests.cpp .......................................   Passed    1.64 sec
        Start  46: merkle_tests:merkle_tests.cpp
 31/125 Test  #38: headers_sync_chainwork_tests:headers_sync_chainwork_tests.cpp ...............   Passed    1.83 sec
        Start  47: merkleblock_tests:merkleblock_tests.cpp
 32/125 Test  #40: i2p_tests:i2p_tests.cpp .....................................................   Passed    1.55 sec
        Start  48: miner_tests:miner_tests.cpp
 33/125 Test  #42: key_io_tests:key_io_tests.cpp ...............................................   Passed    1.43 sec
        Start  49: miniminer_tests:miniminer_tests.cpp
 34/125 Test  #33: disconnected_transactions:disconnected_transactions.cpp .....................   Passed    3.78 sec
        Start  50: miniscript_tests:miniscript_tests.cpp
 35/125 Test  #43: key_tests:key_tests.cpp .....................................................   Passed    1.63 sec
        Start  51: minisketch_tests:minisketch_tests.cpp
 36/125 Test  #44: logging_tests:logging_tests.cpp .............................................   Passed    1.61 sec
        Start  52: multisig_tests:multisig_tests.cpp
 37/125 Test  #28: crypto_tests:crypto_tests.cpp ...............................................   Passed    5.17 sec
        Start  53: net_peer_connection_tests:net_peer_connection_tests.cpp
 38/125 Test  #45: mempool_tests:mempool_tests.cpp .............................................   Passed    1.60 sec
        Start  54: net_peer_eviction_tests:net_peer_eviction_tests.cpp
 39/125 Test  #47: merkleblock_tests:merkleblock_tests.cpp .....................................   Passed    1.50 sec
        Start  55: net_tests:net_tests.cpp
 40/125 Test  #23: checkqueue_tests:checkqueue_tests.cpp .......................................   Passed    6.20 sec
        Start  56: netbase_tests:netbase_tests.cpp
 41/125 Test  #20: blockmanager_tests:blockmanager_tests.cpp ...................................   Passed    6.69 sec
        Start  57: orphanage_tests:orphanage_tests.cpp
 42/125 Test  #53: net_peer_connection_tests:net_peer_connection_tests.cpp .....................   Passed    1.28 sec
        Start  58: pmt_tests:pmt_tests.cpp
 43/125 Test  #52: multisig_tests:multisig_tests.cpp ...........................................   Passed    1.35 sec
        Start  59: policy_fee_tests:policy_fee_tests.cpp
 44/125 Test  #18: blockfilter_index_tests:blockfilter_index_tests.cpp .........................   Passed    6.85 sec
        Start  60: policyestimator_tests:policyestimator_tests.cpp
 45/125 Test  #46: merkle_tests:merkle_tests.cpp ...............................................   Passed    2.67 sec
        Start  61: pool_tests:pool_tests.cpp
 46/125 Test  #51: minisketch_tests:minisketch_tests.cpp .......................................   Passed    1.57 sec
        Start  62: pow_tests:pow_tests.cpp
 47/125 Test  #54: net_peer_eviction_tests:net_peer_eviction_tests.cpp .........................   Passed    1.73 sec
        Start  63: prevector_tests:prevector_tests.cpp
 48/125 Test  #56: netbase_tests:netbase_tests.cpp .............................................   Passed    1.48 sec
        Start  64: raii_event_tests:raii_event_tests.cpp
 49/125 Test  #59: policy_fee_tests:policy_fee_tests.cpp .......................................   Passed    1.37 sec
        Start  65: random_tests:random_tests.cpp
 50/125 Test  #57: orphanage_tests:orphanage_tests.cpp .........................................   Passed    1.66 sec
        Start  66: rbf_tests:rbf_tests.cpp
 51/125 Test  #61: pool_tests:pool_tests.cpp ...................................................   Passed    1.55 sec
        Start  67: rest_tests:rest_tests.cpp
 52/125 Test  #62: pow_tests:pow_tests.cpp .....................................................   Passed    1.81 sec
        Start  68: result_tests:result_tests.cpp
 53/125 Test  #60: policyestimator_tests:policyestimator_tests.cpp .............................   Passed    2.10 sec
        Start  69: reverselock_tests:reverselock_tests.cpp
 54/125 Test  #58: pmt_tests:pmt_tests.cpp .....................................................   Passed    2.25 sec
        Start  70: rpc_tests:rpc_tests.cpp
 55/125 Test  #64: raii_event_tests:raii_event_tests.cpp .......................................   Passed    1.51 sec
        Start  71: sanity_tests:sanity_tests.cpp
 56/125 Test  #25: coinstatsindex_tests:coinstatsindex_tests.cpp ...............................   Passed    9.39 sec
        Start  72: scheduler_tests:scheduler_tests.cpp
 57/125 Test  #63: prevector_tests:prevector_tests.cpp .........................................   Passed    2.36 sec
        Start  73: script_p2sh_tests:script_p2sh_tests.cpp
 58/125 Test  #67: rest_tests:rest_tests.cpp ...................................................   Passed    1.34 sec
        Start  74: script_parse_tests:script_parse_tests.cpp
 59/125 Test  #65: random_tests:random_tests.cpp ...............................................   Passed    1.74 sec
        Start  75: script_segwit_tests:script_segwit_tests.cpp
 60/125 Test  #50: miniscript_tests:miniscript_tests.cpp .......................................   Passed    4.63 sec
        Start  76: script_standard_tests:script_standard_tests.cpp
 61/125 Test  #68: result_tests:result_tests.cpp ...............................................   Passed    1.56 sec
        Start  77: script_tests:script_tests.cpp
 62/125 Test  #69: reverselock_tests:reverselock_tests.cpp .....................................   Passed    1.43 sec
        Start  78: scriptnum_tests:scriptnum_tests.cpp
 63/125 Test  #71: sanity_tests:sanity_tests.cpp ...............................................   Passed    1.60 sec
        Start  79: serfloat_tests:serfloat_tests.cpp
 64/125 Test  #70: rpc_tests:rpc_tests.cpp .....................................................   Passed    1.86 sec
        Start  80: serialize_tests:serialize_tests.cpp
 65/125 Test  #73: script_p2sh_tests:script_p2sh_tests.cpp .....................................   Passed    1.45 sec
        Start  81: settings_tests:settings_tests.cpp
 66/125 Test  #72: scheduler_tests:scheduler_tests.cpp .........................................   Passed    1.50 sec
        Start  82: sighash_tests:sighash_tests.cpp
 67/125 Test  #74: script_parse_tests:script_parse_tests.cpp ...................................   Passed    1.54 sec
        Start  83: sigopcount_tests:sigopcount_tests.cpp
 68/125 Test  #76: script_standard_tests:script_standard_tests.cpp .............................   Passed    1.45 sec
        Start  84: skiplist_tests:skiplist_tests.cpp
 69/125 Test  #75: script_segwit_tests:script_segwit_tests.cpp .................................   Passed    1.53 sec
        Start  85: sock_tests:sock_tests.cpp
 70/125 Test  #55: net_tests:net_tests.cpp .....................................................   Passed    5.69 sec
        Start  86: span_tests:span_tests.cpp
 71/125 Test  #78: scriptnum_tests:scriptnum_tests.cpp .........................................   Passed    1.45 sec
        Start  87: streams_tests:streams_tests.cpp
 72/125 Test  #48: miner_tests:miner_tests.cpp .................................................   Passed    7.38 sec
        Start  88: sync_tests:sync_tests.cpp
 73/125 Test  #66: rbf_tests:rbf_tests.cpp .....................................................   Passed    3.81 sec
        Start  89: system_tests:system_tests.cpp
 74/125 Test  #81: settings_tests:settings_tests.cpp ...........................................   Passed    1.50 sec
        Start  90: timedata_tests:timedata_tests.cpp
 75/125 Test  #80: serialize_tests:serialize_tests.cpp .........................................   Passed    1.77 sec
        Start  91: torcontrol_tests:torcontrol_tests.cpp
 76/125 Test  #86: span_tests:span_tests.cpp ...................................................   Passed    1.38 sec
        Start  92: transaction_tests:transaction_tests.cpp
 77/125 Test  #83: sigopcount_tests:sigopcount_tests.cpp .......................................   Passed    1.68 sec
        Start  93: translation_tests:translation_tests.cpp
 78/125 Test  #85: sock_tests:sock_tests.cpp ...................................................   Passed    1.59 sec
        Start  94: txindex_tests:txindex_tests.cpp
 79/125 Test  #77: script_tests:script_tests.cpp ...............................................   Passed    2.96 sec
        Start  95: txpackage_tests:txpackage_tests.cpp
 80/125 Test  #82: sighash_tests:sighash_tests.cpp .............................................   Passed    2.43 sec
        Start  96: txreconciliation_tests:txreconciliation_tests.cpp
 81/125 Test  #84: skiplist_tests:skiplist_tests.cpp ...........................................   Passed    2.14 sec
        Start  97: txrequest_tests:txrequest_tests.cpp
 82/125 Test  #89: system_tests:system_tests.cpp ...............................................   Passed    1.34 sec
        Start  98: txvalidation_tests:txvalidation_tests.cpp
 83/125 Test  #88: sync_tests:sync_tests.cpp ...................................................   Passed    1.67 sec
        Start  99: txvalidationcache_tests:txvalidationcache_tests.cpp
 84/125 Test  #87: streams_tests:streams_tests.cpp .............................................***Failed    1.74 sec
        Start 100: uint256_tests:uint256_tests.cpp
 85/125 Test  #79: serfloat_tests:serfloat_tests.cpp ...........................................   Passed    2.83 sec
        Start 101: util_tests:util_tests.cpp
 86/125 Test  #91: torcontrol_tests:torcontrol_tests.cpp .......................................   Passed    1.37 sec
        Start 102: util_threadnames_tests:util_threadnames_tests.cpp
 87/125 Test  #90: timedata_tests:timedata_tests.cpp ...........................................   Passed    1.55 sec
        Start 103: validation_block_tests:validation_block_tests.cpp
 88/125 Test  #93: translation_tests:translation_tests.cpp .....................................   Passed    1.59 sec
        Start 104: validation_chainstate_tests:validation_chainstate_tests.cpp
 89/125 Test #100: uint256_tests:uint256_tests.cpp .............................................   Passed    1.49 sec
        Start 105: validation_chainstatemanager_tests:validation_chainstatemanager_tests.cpp
 90/125 Test  #96: txreconciliation_tests:txreconciliation_tests.cpp ...........................   Passed    1.67 sec
        Start 106: validation_flush_tests:validation_flush_tests.cpp
 91/125 Test #101: util_tests:util_tests.cpp ...................................................   Passed    1.86 sec
        Start 107: validation_tests:validation_tests.cpp
 92/125 Test #102: util_threadnames_tests:util_threadnames_tests.cpp ...........................   Passed    1.60 sec
        Start 108: validationinterface_tests:validationinterface_tests.cpp
 93/125 Test #106: validation_flush_tests:validation_flush_tests.cpp ...........................   Passed    1.54 sec
        Start 109: versionbits_tests:versionbits_tests.cpp
 94/125 Test #107: validation_tests:validation_tests.cpp .......................................   Passed    1.68 sec
        Start 110: xoroshiro128plusplus_tests:xoroshiro128plusplus_tests.cpp
 95/125 Test #108: validationinterface_tests:validationinterface_tests.cpp .....................   Passed    1.65 sec
        Start 111: coinselector_tests:../wallet/test/coinselector_tests.cpp
 96/125 Test  #97: txrequest_tests:txrequest_tests.cpp .........................................   Passed    4.89 sec
        Start 112: feebumper_tests:../wallet/test/feebumper_tests.cpp
 97/125 Test  #24: coins_tests:coins_tests.cpp .................................................   Passed   18.35 sec
        Start 113: group_outputs_tests:../wallet/test/group_outputs_tests.cpp
 98/125 Test  #94: txindex_tests:txindex_tests.cpp .............................................   Passed    5.65 sec
        Start 114: init_tests:../wallet/test/init_tests.cpp
 99/125 Test #110: xoroshiro128plusplus_tests:xoroshiro128plusplus_tests.cpp ...................   Passed    1.51 sec
        Start 115: ismine_tests:../wallet/test/ismine_tests.cpp
100/125 Test  #98: txvalidation_tests:txvalidation_tests.cpp ...................................   Passed    5.31 sec
        Start 116: psbt_wallet_tests:../wallet/test/psbt_wallet_tests.cpp
101/125 Test #112: feebumper_tests:../wallet/test/feebumper_tests.cpp ..........................   Passed    1.51 sec
        Start 117: wallet_util_tests:../wallet/test/rpc_util_tests.cpp
102/125 Test #115: ismine_tests:../wallet/test/ismine_tests.cpp ................................   Passed    1.50 sec
        Start 118: scriptpubkeyman_tests:../wallet/test/scriptpubkeyman_tests.cpp
103/125 Test #104: validation_chainstate_tests:validation_chainstate_tests.cpp .................   Passed    5.73 sec
        Start 119: spend_tests:../wallet/test/spend_tests.cpp
104/125 Test #114: init_tests:../wallet/test/init_tests.cpp ....................................   Passed    1.77 sec
        Start 120: wallet_crypto_tests:../wallet/test/wallet_crypto_tests.cpp
105/125 Test #116: psbt_wallet_tests:../wallet/test/psbt_wallet_tests.cpp ......................   Passed    1.99 sec
        Start 121: wallet_tests:../wallet/test/wallet_tests.cpp
106/125 Test  #49: miniminer_tests:miniminer_tests.cpp .........................................   Passed   16.08 sec
        Start 122: wallet_transaction_tests:../wallet/test/wallet_transaction_tests.cpp
107/125 Test #109: versionbits_tests:versionbits_tests.cpp .....................................   Passed    4.38 sec
        Start 123: walletdb_tests:../wallet/test/walletdb_tests.cpp
108/125 Test #113: group_outputs_tests:../wallet/test/group_outputs_tests.cpp ..................   Passed    2.74 sec
        Start 124: walletload_tests:../wallet/test/walletload_tests.cpp
109/125 Test #117: wallet_util_tests:../wallet/test/rpc_util_tests.cpp .........................   Passed    1.47 sec
        Start 125: db_tests:../wallet/test/db_tests.cpp
110/125 Test #118: scriptpubkeyman_tests:../wallet/test/scriptpubkeyman_tests.cpp ..............   Passed    1.68 sec
111/125 Test #122: wallet_transaction_tests:../wallet/test/wallet_transaction_tests.cpp ........   Passed    1.54 sec
112/125 Test  #41: interfaces_tests:interfaces_tests.cpp .......................................   Passed   19.15 sec
113/125 Test  #99: txvalidationcache_tests:txvalidationcache_tests.cpp .........................   Passed    9.94 sec
114/125 Test #123: walletdb_tests:../wallet/test/walletdb_tests.cpp ............................   Passed    2.64 sec
115/125 Test #125: db_tests:../wallet/test/db_tests.cpp ........................................   Passed    2.73 sec
116/125 Test #120: wallet_crypto_tests:../wallet/test/wallet_crypto_tests.cpp ..................   Passed    3.87 sec
117/125 Test  #92: transaction_tests:transaction_tests.cpp .....................................   Passed   12.48 sec
118/125 Test #124: walletload_tests:../wallet/test/walletload_tests.cpp ........................   Passed    4.78 sec
119/125 Test #119: spend_tests:../wallet/test/spend_tests.cpp ..................................   Passed    8.93 sec
120/125 Test  #95: txpackage_tests:txpackage_tests.cpp .........................................   Passed   19.15 sec
121/125 Test #111: coinselector_tests:../wallet/test/coinselector_tests.cpp ....................   Passed   18.86 sec
122/125 Test #103: validation_block_tests:validation_block_tests.cpp ...........................   Passed   35.70 sec
123/125 Test #105: validation_chainstatemanager_tests:validation_chainstatemanager_tests.cpp ...   Passed   36.14 sec
124/125 Test #121: wallet_tests:../wallet/test/wallet_tests.cpp ................................   Passed   31.10 sec
125/125 Test   #1: util_test_runner ............................................................   Passed   59.47 sec

98% tests passed, 2 tests failed out of 125

Total Test time (real) =  59.47 sec

The following tests FAILED:
          3 - bench_sanity_check_high_priority (Failed)
         87 - streams_tests:streams_tests.cpp (Failed)
Errors while running CTest
Output from these tests are in: /home/ubunpolk/src/bitcoin-hebasto/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
ctest rerun failures results
ctest -j $(nproc) --rerun-failed --output-on-failure
Test project /home/ubunpolk/src/bitcoin-hebasto/build
    Start  3: bench_sanity_check_high_priority
    Start 87: streams_tests:streams_tests.cpp
1/2 Test #87: streams_tests:streams_tests.cpp ....***Failed    1.09 sec
Running 10 test cases...
unknown location(0): fatal error: in "streams_tests/xor_file": std::ios_base::failure[abi:cxx11]: AutoFile::write: file handle is nullptr: iostream error
/home/ubunpolk/src/bitcoin-hebasto/src/test/streams_tests.cpp(29): last checkpoint

*** 1 failure is detected in the test module "Bitcoin Core Test Suite"

2/2 Test  #3: bench_sanity_check_high_priority ...***Failed    1.19 sec
Running with -sanity-check option, output is being suppressed as benchmark results will be useless.
Error: bad optional access


0% tests passed, 2 tests failed out of 2

Total Test time (real) =   1.19 sec

The following tests FAILED:
          3 - bench_sanity_check_high_priority (Failed)
         87 - streams_tests:streams_tests.cpp (Failed)
Errors while running CTest

On the same machine platform rebuild the system from master and executed make check successfully.

tests run fine on autotooling
make -j "$(($(nproc)+1))" check
Making check in src
make[1]: Entering directory '/home/ubunpolk/src/bitcoin/src'
make[2]: Entering directory '/home/ubunpolk/src/bitcoin/src'
make[3]: Entering directory '/home/ubunpolk/src/bitcoin'
make[3]: Leaving directory '/home/ubunpolk/src/bitcoin'
  GEN      obj/build.h
make  minisketch/test
make[3]: Entering directory '/home/ubunpolk/src/bitcoin/src'
  CXX      minisketch/src/test-test.o
  CXXLD    minisketch/test
make[3]: Leaving directory '/home/ubunpolk/src/bitcoin/src'
make  check-TESTS check-local
make[3]: Entering directory '/home/ubunpolk/src/bitcoin/src'
Running tests: bech32_tests from test/bech32_tests.cpp
Running tests: bip324_tests from test/bip324_tests.cpp
Running tests: addrman_tests from test/addrman_tests.cpp
Running tests: blockfilter_index_tests from test/blockfilter_index_tests.cpp
Running tests: base64_tests from test/base64_tests.cpp
Running tests: blockchain_tests from test/blockchain_tests.cpp
Running tests: amount_tests from test/amount_tests.cpp
Running tests: allocator_tests from test/allocator_tests.cpp
Running tests: blockencodings_tests from test/blockencodings_tests.cpp
Running tests: base32_tests from test/base32_tests.cpp
Running tests: banman_tests from test/banman_tests.cpp
Running tests: arith_uint256_tests from test/arith_uint256_tests.cpp
Running tests: blockfilter_tests from test/blockfilter_tests.cpp
Running tests: argsman_tests from test/argsman_tests.cpp
Running tests: base58_tests from test/base58_tests.cpp
Running tests: bip32_tests from test/bip32_tests.cpp
Running tests: blockmanager_tests from test/blockmanager_tests.cpp
Running tests: bloom_tests from test/bloom_tests.cpp
Running tests: checkqueue_tests from test/checkqueue_tests.cpp
Running tests: bswap_tests from test/bswap_tests.cpp
Running tests: compilerbug_tests from test/compilerbug_tests.cpp
Running tests: coinstatsindex_tests from test/coinstatsindex_tests.cpp
Running tests: coins_tests from test/coins_tests.cpp
Running tests: compress_tests from test/compress_tests.cpp
Running tests: crypto_tests from test/crypto_tests.cpp
Running tests: cuckoocache_tests from test/cuckoocache_tests.cpp
Running tests: denialofservice_tests from test/denialofservice_tests.cpp
Running tests: dbwrapper_tests from test/dbwrapper_tests.cpp
Running tests: descriptor_tests from test/descriptor_tests.cpp
Running tests: disconnected_transactions from test/disconnected_transactions.cpp
Running tests: flatfile_tests from test/flatfile_tests.cpp
Running tests: fs_tests from test/fs_tests.cpp
Running tests: getarg_tests from test/getarg_tests.cpp
Running tests: hash_tests from test/hash_tests.cpp
Running tests: headers_sync_chainwork_tests from test/headers_sync_chainwork_tests.cpp
Running tests: i2p_tests from test/i2p_tests.cpp
Running tests: httpserver_tests from test/httpserver_tests.cpp
Running tests: interfaces_tests from test/interfaces_tests.cpp
Running tests: key_io_tests from test/key_io_tests.cpp
Running tests: key_tests from test/key_tests.cpp
Running tests: logging_tests from test/logging_tests.cpp
Running tests: mempool_tests from test/mempool_tests.cpp
Running tests: merkle_tests from test/merkle_tests.cpp
Running tests: merkleblock_tests from test/merkleblock_tests.cpp
Running tests: miniscript_tests from test/miniscript_tests.cpp
Running tests: miner_tests from test/miner_tests.cpp
Running tests: miniminer_tests from test/miniminer_tests.cpp
Running tests: minisketch_tests from test/minisketch_tests.cpp
Running tests: multisig_tests from test/multisig_tests.cpp
Running tests: net_tests from test/net_tests.cpp
Running tests: net_peer_connection_tests from test/net_peer_connection_tests.cpp
Running tests: net_peer_eviction_tests from test/net_peer_eviction_tests.cpp
Running tests: netbase_tests from test/netbase_tests.cpp
Running tests: orphanage_tests from test/orphanage_tests.cpp
make[4]: Entering directory '/home/ubunpolk/src/bitcoin/src'
Running tests: pmt_tests from test/pmt_tests.cpp
Running tests: policy_fee_tests from test/policy_fee_tests.cpp
Running tests: policyestimator_tests from test/policyestimator_tests.cpp
Running tests: pool_tests from test/pool_tests.cpp
Running tests: pow_tests from test/pow_tests.cpp
Running tests: prevector_tests from test/prevector_tests.cpp
Running tests: raii_event_tests from test/raii_event_tests.cpp
Running tests: random_tests from test/random_tests.cpp
PASS: univalue/test/object
Running tests: rbf_tests from test/rbf_tests.cpp
make[5]: Entering directory '/home/ubunpolk/src/bitcoin'
make[5]: Leaving directory '/home/ubunpolk/src/bitcoin'
PASS: univalue/test/unitester
Running tests: rest_tests from test/rest_tests.cpp
Running tests: result_tests from test/result_tests.cpp
Running tests: reverselock_tests from test/reverselock_tests.cpp
Running tests: rpc_tests from test/rpc_tests.cpp
Running tests: sanity_tests from test/sanity_tests.cpp
Running tests: scheduler_tests from test/scheduler_tests.cpp
Running tests: script_p2sh_tests from test/script_p2sh_tests.cpp
Running tests: script_parse_tests from test/script_parse_tests.cpp
Running tests: script_segwit_tests from test/script_segwit_tests.cpp
Running tests: script_standard_tests from test/script_standard_tests.cpp
Running tests: scriptnum_tests from test/scriptnum_tests.cpp
Running tests: script_tests from test/script_tests.cpp
Running tests: serfloat_tests from test/serfloat_tests.cpp
  GEN      obj/build.h
Running tests: serialize_tests from test/serialize_tests.cpp
Running tests: settings_tests from test/settings_tests.cpp
Running tests: sighash_tests from test/sighash_tests.cpp
Running tests: sigopcount_tests from test/sigopcount_tests.cpp
Running tests: skiplist_tests from test/skiplist_tests.cpp
Running tests: sock_tests from test/sock_tests.cpp
Running tests: span_tests from test/span_tests.cpp
Running tests: streams_tests from test/streams_tests.cpp
Running tests: sync_tests from test/sync_tests.cpp
Running tests: system_tests from test/system_tests.cpp
Running tests: timedata_tests from test/timedata_tests.cpp
Running tests: torcontrol_tests from test/torcontrol_tests.cpp
Running tests: transaction_tests from test/transaction_tests.cpp
Running tests: translation_tests from test/translation_tests.cpp
Running tests: txindex_tests from test/txindex_tests.cpp
Running tests: txpackage_tests from test/txpackage_tests.cpp
Running tests: txreconciliation_tests from test/txreconciliation_tests.cpp
Running tests: txrequest_tests from test/txrequest_tests.cpp
Running tests: txvalidation_tests from test/txvalidation_tests.cpp
Running tests: txvalidationcache_tests from test/txvalidationcache_tests.cpp
Running tests: uint256_tests from test/uint256_tests.cpp
Running tests: util_tests from test/util_tests.cpp
Running tests: util_threadnames_tests from test/util_threadnames_tests.cpp
Running tests: validation_block_tests from test/validation_block_tests.cpp
Running tests: validation_chainstate_tests from test/validation_chainstate_tests.cpp
Running tests: validation_chainstatemanager_tests from test/validation_chainstatemanager_tests.cpp
Running tests: validation_flush_tests from test/validation_flush_tests.cpp
Running tests: validationinterface_tests from test/validationinterface_tests.cpp
Running tests: validation_tests from test/validation_tests.cpp
Running tests: versionbits_tests from test/versionbits_tests.cpp
Running tests: xoroshiro128plusplus_tests from test/xoroshiro128plusplus_tests.cpp
Running tests: feebumper_tests from wallet/test/feebumper_tests.cpp
Running tests: psbt_wallet_tests from wallet/test/psbt_wallet_tests.cpp
Running tests: spend_tests from wallet/test/spend_tests.cpp
Running tests: wallet_tests from wallet/test/wallet_tests.cpp
Running tests: walletdb_tests from wallet/test/walletdb_tests.cpp
Running tests: wallet_crypto_tests from wallet/test/wallet_crypto_tests.cpp
Running tests: wallet_transaction_tests from wallet/test/wallet_transaction_tests.cpp
Running tests: coinselector_tests from wallet/test/coinselector_tests.cpp
Running tests: init_tests from wallet/test/init_tests.cpp
Running tests: ismine_tests from wallet/test/ismine_tests.cpp
Running tests: wallet_util_tests from wallet/test/rpc_util_tests.cpp
Running tests: scriptpubkeyman_tests from wallet/test/scriptpubkeyman_tests.cpp
Running tests: walletload_tests from wallet/test/walletload_tests.cpp
Running tests: group_outputs_tests from wallet/test/group_outputs_tests.cpp
PASS: minisketch/test
PASS: qt/test/test_bitcoin-qt
============================================================================
Testsuite summary for Bitcoin Core 26.99.0
============================================================================
# TOTAL: 4
# PASS:  4
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
make[4]: Leaving directory '/home/ubunpolk/src/bitcoin/src'
Running test/util/test_runner.py...
/usr/bin/python3.10 ../test/util/test_runner.py
Running test/util/rpcauth-test.py...
/usr/bin/python3.10 ../test/util/rpcauth-test.py
...
----------------------------------------------------------------------
Ran 3 tests in 0.005s

OK
Running bench/bench_bitcoin (one iteration sanity check, only high priority)...
bench/bench_bitcoin -sanity-check -priority-level=high
Running with -sanity-check option, output is being suppressed as benchmark results will be useless.
make[4]: Entering directory '/home/ubunpolk/src/bitcoin/src/secp256k1'
make  check-am
make[5]: Entering directory '/home/ubunpolk/src/bitcoin/src/secp256k1'
  CC       src/noverify_tests-tests.o
  CC       src/tests-tests.o
  CC       src/exhaustive_tests-tests_exhaustive.o
  CCLD     exhaustive_tests
  CCLD     noverify_tests
  CCLD     tests
make  check-TESTS
make[6]: Entering directory '/home/ubunpolk/src/bitcoin/src/secp256k1'
make[7]: Entering directory '/home/ubunpolk/src/bitcoin/src/secp256k1'
PASS: exhaustive_tests
PASS: noverify_tests
PASS: tests
============================================================================
Testsuite summary for libsecp256k1 0.4.0
============================================================================
# TOTAL: 3
# PASS:  3
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
make[7]: Leaving directory '/home/ubunpolk/src/bitcoin/src/secp256k1'
make[6]: Leaving directory '/home/ubunpolk/src/bitcoin/src/secp256k1'
make[5]: Leaving directory '/home/ubunpolk/src/bitcoin/src/secp256k1'
make[4]: Leaving directory '/home/ubunpolk/src/bitcoin/src/secp256k1'
make[3]: Leaving directory '/home/ubunpolk/src/bitcoin/src'
make[2]: Leaving directory '/home/ubunpolk/src/bitcoin/src'
make[1]: Leaving directory '/home/ubunpolk/src/bitcoin/src'
Making check in doc/man
make[1]: Entering directory '/home/ubunpolk/src/bitcoin/doc/man'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/ubunpolk/src/bitcoin/doc/man'
make[1]: Entering directory '/home/ubunpolk/src/bitcoin'
make[1]: Nothing to be done for 'check-am'.
make[1]: Leaving directory '/home/ubunpolk/src/bitcoin'

Expected behaviour

All tests should pass as in a normal build on any platform.

Steps to reproduce

Perform cross-compilation on WSL Ubuntu 22.04 for Windows (source) on cmake-staging branch:

make -C depends -j $(nproc) HOST=x86_64-w64-mingw32 NO_QT=1
mkdir build
cd build
cmake -S .. --toolchain ../depends/x86_64-w64-mingw32/share/toolchain.cmake
cmake --build . -j $(nproc)
ctest -j $(nproc)

Relevant log output

No response

How did you obtain Bitcoin Core

Other

What version of Bitcoin Core are you using?

v26.99

Operating system and version

Ubuntu 22.04 on WSL

Machine specifications

No response

@hebasto
Copy link
Owner

hebasto commented Dec 12, 2023

@pablomartin4btc

Thank you for testing!

Any improvements with the the recent staging branch?

@pablomartin4btc
Copy link
Author

I've checked compiling updated branch cmake-staging.

On WSL with Ubuntu 22.04:

Only 1 test fails now (streams_tests:streams_tests.cpp).
ubunpolk@3XT1NT-4RG0LS:~/src/bitcoin-hebasto/build$ ctest -j $(nproc)
Test project /home/ubunpolk/src/bitcoin-hebasto/build
        Start   1: util_test_runner
        Start   2: util_rpcauth_test
        Start   3: bench_sanity_check_high_priority
        Start   4: addrman_tests:addrman_tests.cpp
        Start   5: allocator_tests:allocator_tests.cpp
        Start   6: amount_tests:amount_tests.cpp
        Start   7: argsman_tests:argsman_tests.cpp
        Start   8: arith_uint256_tests:arith_uint256_tests.cpp
        Start   9: banman_tests:banman_tests.cpp
        Start  10: base32_tests:base32_tests.cpp
        Start  11: base58_tests:base58_tests.cpp
        Start  12: base64_tests:base64_tests.cpp
        Start  13: bech32_tests:bech32_tests.cpp
        Start  14: bip32_tests:bip32_tests.cpp
        Start  15: bip324_tests:bip324_tests.cpp
        Start  16: blockchain_tests:blockchain_tests.cpp
  1/125 Test   #2: util_rpcauth_test ...........................................................   Passed    0.06 sec
        Start  17: blockencodings_tests:blockencodings_tests.cpp
  2/125 Test  #13: bech32_tests:bech32_tests.cpp ...............................................   Passed   19.72 sec
        Start  18: blockfilter_index_tests:blockfilter_index_tests.cpp
  3/125 Test  #10: base32_tests:base32_tests.cpp ...............................................   Passed   19.72 sec
        Start  19: blockfilter_tests:blockfilter_tests.cpp
  4/125 Test  #12: base64_tests:base64_tests.cpp ...............................................   Passed   19.72 sec
        Start  20: blockmanager_tests:blockmanager_tests.cpp
  5/125 Test   #6: amount_tests:amount_tests.cpp ...............................................   Passed   19.72 sec
        Start  21: bloom_tests:bloom_tests.cpp
  6/125 Test   #5: allocator_tests:allocator_tests.cpp .........................................   Passed   19.73 sec
        Start  22: bswap_tests:bswap_tests.cpp
  7/125 Test   #8: arith_uint256_tests:arith_uint256_tests.cpp .................................   Passed   19.73 sec
        Start  23: checkqueue_tests:checkqueue_tests.cpp
  8/125 Test   #9: banman_tests:banman_tests.cpp ...............................................   Passed   19.74 sec
        Start  24: coins_tests:coins_tests.cpp
  9/125 Test  #16: blockchain_tests:blockchain_tests.cpp .......................................   Passed   19.74 sec
        Start  25: coinstatsindex_tests:coinstatsindex_tests.cpp
 10/125 Test  #11: base58_tests:base58_tests.cpp ...............................................   Passed   19.84 sec
        Start  26: compilerbug_tests:compilerbug_tests.cpp
 11/125 Test  #14: bip32_tests:bip32_tests.cpp .................................................   Passed   19.88 sec
        Start  27: compress_tests:compress_tests.cpp
 12/125 Test  #17: blockencodings_tests:blockencodings_tests.cpp ...............................   Passed   20.02 sec
        Start  28: crypto_tests:crypto_tests.cpp
 13/125 Test   #4: addrman_tests:addrman_tests.cpp .............................................   Passed   20.21 sec
        Start  29: cuckoocache_tests:cuckoocache_tests.cpp
 14/125 Test  #15: bip324_tests:bip324_tests.cpp ...............................................   Passed   20.56 sec
        Start  30: dbwrapper_tests:dbwrapper_tests.cpp
 15/125 Test  #22: bswap_tests:bswap_tests.cpp .................................................   Passed    1.43 sec
        Start  31: denialofservice_tests:denialofservice_tests.cpp
 16/125 Test  #19: blockfilter_tests:blockfilter_tests.cpp .....................................   Passed    1.48 sec
        Start  32: descriptor_tests:descriptor_tests.cpp
 17/125 Test  #26: compilerbug_tests:compilerbug_tests.cpp .....................................   Passed    1.38 sec
        Start  33: disconnected_transactions:disconnected_transactions.cpp
 18/125 Test  #21: bloom_tests:bloom_tests.cpp .................................................   Passed    1.57 sec
        Start  34: flatfile_tests:flatfile_tests.cpp
 19/125 Test  #27: compress_tests:compress_tests.cpp ...........................................   Passed    1.78 sec
        Start  35: fs_tests:fs_tests.cpp
 20/125 Test  #30: dbwrapper_tests:dbwrapper_tests.cpp .........................................   Passed    1.88 sec
        Start  36: getarg_tests:getarg_tests.cpp
 21/125 Test  #31: denialofservice_tests:denialofservice_tests.cpp .............................   Passed    1.54 sec
        Start  37: hash_tests:hash_tests.cpp
 22/125 Test  #34: flatfile_tests:flatfile_tests.cpp ...........................................   Passed    1.47 sec
        Start  38: headers_sync_chainwork_tests:headers_sync_chainwork_tests.cpp
 23/125 Test  #29: cuckoocache_tests:cuckoocache_tests.cpp .....................................   Passed    2.77 sec
        Start  39: httpserver_tests:httpserver_tests.cpp
 24/125 Test  #35: fs_tests:fs_tests.cpp .......................................................   Passed    1.46 sec
        Start  40: i2p_tests:i2p_tests.cpp
 25/125 Test   #7: argsman_tests:argsman_tests.cpp .............................................   Passed   23.24 sec
        Start  41: interfaces_tests:interfaces_tests.cpp
 26/125 Test  #32: descriptor_tests:descriptor_tests.cpp .......................................   Passed    2.26 sec
        Start  42: key_io_tests:key_io_tests.cpp
 27/125 Test  #36: getarg_tests:getarg_tests.cpp ...............................................   Passed    1.54 sec
        Start  43: key_tests:key_tests.cpp
 28/125 Test  #37: hash_tests:hash_tests.cpp ...................................................   Passed    1.44 sec
        Start  44: logging_tests:logging_tests.cpp
 29/125 Test  #38: headers_sync_chainwork_tests:headers_sync_chainwork_tests.cpp ...............   Passed    1.52 sec
        Start  45: mempool_tests:mempool_tests.cpp
 30/125 Test  #39: httpserver_tests:httpserver_tests.cpp .......................................   Passed    1.54 sec
        Start  46: merkle_tests:merkle_tests.cpp
 31/125 Test  #40: i2p_tests:i2p_tests.cpp .....................................................   Passed    1.57 sec
        Start  47: merkleblock_tests:merkleblock_tests.cpp
 32/125 Test  #28: crypto_tests:crypto_tests.cpp ...............................................   Passed    4.66 sec
        Start  48: miner_tests:miner_tests.cpp
 33/125 Test  #42: key_io_tests:key_io_tests.cpp ...............................................   Passed    1.40 sec
        Start  49: miniminer_tests:miniminer_tests.cpp
 34/125 Test  #43: key_tests:key_tests.cpp .....................................................   Passed    1.50 sec
        Start  50: miniscript_tests:miniscript_tests.cpp
 35/125 Test  #44: logging_tests:logging_tests.cpp .............................................   Passed    1.42 sec
        Start  51: minisketch_tests:minisketch_tests.cpp
 36/125 Test  #45: mempool_tests:mempool_tests.cpp .............................................   Passed    1.36 sec
        Start  52: multisig_tests:multisig_tests.cpp
 37/125 Test  #33: disconnected_transactions:disconnected_transactions.cpp .....................   Passed    4.53 sec
        Start  53: net_peer_connection_tests:net_peer_connection_tests.cpp
 38/125 Test  #23: checkqueue_tests:checkqueue_tests.cpp .......................................   Passed    6.14 sec
        Start  54: net_peer_eviction_tests:net_peer_eviction_tests.cpp
 39/125 Test  #47: merkleblock_tests:merkleblock_tests.cpp .....................................   Passed    1.26 sec
        Start  55: net_tests:net_tests.cpp
 40/125 Test  #46: merkle_tests:merkle_tests.cpp ...............................................   Passed    1.99 sec
        Start  56: netbase_tests:netbase_tests.cpp
 41/125 Test  #51: minisketch_tests:minisketch_tests.cpp .......................................   Passed    1.31 sec
        Start  57: orphanage_tests:orphanage_tests.cpp
 42/125 Test  #52: multisig_tests:multisig_tests.cpp ...........................................   Passed    1.25 sec
        Start  58: pmt_tests:pmt_tests.cpp
 43/125 Test  #53: net_peer_connection_tests:net_peer_connection_tests.cpp .....................   Passed    1.25 sec
        Start  59: policy_fee_tests:policy_fee_tests.cpp
 44/125 Test  #18: blockfilter_index_tests:blockfilter_index_tests.cpp .........................   Passed    7.49 sec
        Start  60: policyestimator_tests:policyestimator_tests.cpp
 45/125 Test  #54: net_peer_eviction_tests:net_peer_eviction_tests.cpp .........................   Passed    1.53 sec
        Start  61: pool_tests:pool_tests.cpp
 46/125 Test  #56: netbase_tests:netbase_tests.cpp .............................................   Passed    1.45 sec
        Start  62: pow_tests:pow_tests.cpp
 47/125 Test  #20: blockmanager_tests:blockmanager_tests.cpp ...................................   Passed    8.40 sec
        Start  63: prevector_tests:prevector_tests.cpp
 48/125 Test  #57: orphanage_tests:orphanage_tests.cpp .........................................   Passed    1.41 sec
        Start  64: raii_event_tests:raii_event_tests.cpp
 49/125 Test  #59: policy_fee_tests:policy_fee_tests.cpp .......................................   Passed    1.28 sec
        Start  65: random_tests:random_tests.cpp
 50/125 Test  #58: pmt_tests:pmt_tests.cpp .....................................................   Passed    1.41 sec
        Start  66: rbf_tests:rbf_tests.cpp
 51/125 Test  #61: pool_tests:pool_tests.cpp ...................................................   Passed    1.22 sec
        Start  67: rest_tests:rest_tests.cpp
 52/125 Test  #62: pow_tests:pow_tests.cpp .....................................................   Passed    1.39 sec
        Start  68: result_tests:result_tests.cpp
 53/125 Test  #64: raii_event_tests:raii_event_tests.cpp .......................................   Passed    1.20 sec
        Start  69: reverselock_tests:reverselock_tests.cpp
 54/125 Test  #65: random_tests:random_tests.cpp ...............................................   Passed    1.36 sec
        Start  70: rpc_tests:rpc_tests.cpp
 55/125 Test  #67: rest_tests:rest_tests.cpp ...................................................   Passed    1.37 sec
        Start  71: sanity_tests:sanity_tests.cpp
 56/125 Test  #50: miniscript_tests:miniscript_tests.cpp .......................................   Passed    4.52 sec
        Start  72: scheduler_tests:scheduler_tests.cpp
 57/125 Test  #63: prevector_tests:prevector_tests.cpp .........................................   Passed    2.01 sec
        Start  73: script_p2sh_tests:script_p2sh_tests.cpp
 58/125 Test  #25: coinstatsindex_tests:coinstatsindex_tests.cpp ...............................   Passed   10.49 sec
        Start  74: script_parse_tests:script_parse_tests.cpp
 59/125 Test  #68: result_tests:result_tests.cpp ...............................................   Passed    1.29 sec
        Start  75: script_segwit_tests:script_segwit_tests.cpp
 60/125 Test  #69: reverselock_tests:reverselock_tests.cpp .....................................   Passed    1.26 sec
        Start  76: script_standard_tests:script_standard_tests.cpp
 61/125 Test  #60: policyestimator_tests:policyestimator_tests.cpp .............................   Passed    4.11 sec
        Start  77: script_tests:script_tests.cpp
 62/125 Test  #72: scheduler_tests:scheduler_tests.cpp .........................................   Passed    1.34 sec
        Start  78: scriptnum_tests:scriptnum_tests.cpp
 63/125 Test  #71: sanity_tests:sanity_tests.cpp ...............................................   Passed    1.40 sec
        Start  79: serfloat_tests:serfloat_tests.cpp
 64/125 Test  #70: rpc_tests:rpc_tests.cpp .....................................................   Passed    1.77 sec
        Start  80: serialize_tests:serialize_tests.cpp
 65/125 Test  #74: script_parse_tests:script_parse_tests.cpp ...................................   Passed    1.29 sec
        Start  81: settings_tests:settings_tests.cpp
 66/125 Test  #73: script_p2sh_tests:script_p2sh_tests.cpp .....................................   Passed    1.44 sec
        Start  82: sighash_tests:sighash_tests.cpp
 67/125 Test  #55: net_tests:net_tests.cpp .....................................................   Passed    5.71 sec
        Start  83: sigopcount_tests:sigopcount_tests.cpp
 68/125 Test  #75: script_segwit_tests:script_segwit_tests.cpp .................................   Passed    1.43 sec
        Start  84: skiplist_tests:skiplist_tests.cpp
 69/125 Test  #76: script_standard_tests:script_standard_tests.cpp .............................   Passed    1.39 sec
        Start  85: sock_tests:sock_tests.cpp
 70/125 Test  #66: rbf_tests:rbf_tests.cpp .....................................................   Passed    4.14 sec
        Start  86: span_tests:span_tests.cpp
 71/125 Test  #48: miner_tests:miner_tests.cpp .................................................   Passed    7.71 sec
        Start  87: streams_tests:streams_tests.cpp
 72/125 Test  #78: scriptnum_tests:scriptnum_tests.cpp .........................................   Passed    1.50 sec
        Start  88: sync_tests:sync_tests.cpp
 73/125 Test  #80: serialize_tests:serialize_tests.cpp .........................................   Passed    1.51 sec
        Start  89: system_tests:system_tests.cpp
 74/125 Test  #81: settings_tests:settings_tests.cpp ...........................................   Passed    1.45 sec
        Start  90: timedata_tests:timedata_tests.cpp
 75/125 Test  #83: sigopcount_tests:sigopcount_tests.cpp .......................................   Passed    1.47 sec
        Start  91: torcontrol_tests:torcontrol_tests.cpp
 76/125 Test  #82: sighash_tests:sighash_tests.cpp .............................................   Passed    1.79 sec
        Start  92: transaction_tests:transaction_tests.cpp
 77/125 Test  #85: sock_tests:sock_tests.cpp ...................................................   Passed    1.41 sec
        Start  93: translation_tests:translation_tests.cpp
 78/125 Test  #86: span_tests:span_tests.cpp ...................................................   Passed    1.32 sec
        Start  94: txindex_tests:txindex_tests.cpp
 79/125 Test  #79: serfloat_tests:serfloat_tests.cpp ...........................................   Passed    2.47 sec
        Start  95: txpackage_tests:txpackage_tests.cpp
 80/125 Test  #84: skiplist_tests:skiplist_tests.cpp ...........................................   Passed    1.93 sec
        Start  96: txreconciliation_tests:txreconciliation_tests.cpp
 81/125 Test  #87: streams_tests:streams_tests.cpp .............................................***Failed    1.65 sec
        Start  97: txrequest_tests:txrequest_tests.cpp
 82/125 Test  #77: script_tests:script_tests.cpp ...............................................   Passed    2.78 sec
        Start  98: txvalidation_tests:txvalidation_tests.cpp
 83/125 Test  #88: sync_tests:sync_tests.cpp ...................................................   Passed    1.33 sec
        Start  99: txvalidationcache_tests:txvalidationcache_tests.cpp
 84/125 Test  #89: system_tests:system_tests.cpp ...............................................   Passed    1.50 sec
        Start 100: uint256_tests:uint256_tests.cpp
 85/125 Test  #90: timedata_tests:timedata_tests.cpp ...........................................   Passed    1.46 sec
        Start 101: util_tests:util_tests.cpp
 86/125 Test  #91: torcontrol_tests:torcontrol_tests.cpp .......................................   Passed    1.37 sec
        Start 102: util_threadnames_tests:util_threadnames_tests.cpp
 87/125 Test  #93: translation_tests:translation_tests.cpp .....................................   Passed    1.54 sec
        Start 103: validation_block_tests:validation_block_tests.cpp
 88/125 Test  #96: txreconciliation_tests:txreconciliation_tests.cpp ...........................   Passed    1.56 sec
        Start 104: validation_chainstate_tests:validation_chainstate_tests.cpp
 89/125 Test #102: util_threadnames_tests:util_threadnames_tests.cpp ...........................   Passed    1.31 sec
        Start 105: validation_chainstatemanager_tests:validation_chainstatemanager_tests.cpp
 90/125 Test #100: uint256_tests:uint256_tests.cpp .............................................   Passed    1.42 sec
        Start 106: validation_flush_tests:validation_flush_tests.cpp
 91/125 Test #101: util_tests:util_tests.cpp ...................................................   Passed    1.95 sec
        Start 107: validation_tests:validation_tests.cpp
 92/125 Test #106: validation_flush_tests:validation_flush_tests.cpp ...........................   Passed    1.34 sec
        Start 108: validationinterface_tests:validationinterface_tests.cpp
 93/125 Test #107: validation_tests:validation_tests.cpp .......................................   Passed    1.41 sec
        Start 109: versionbits_tests:versionbits_tests.cpp
 94/125 Test #108: validationinterface_tests:validationinterface_tests.cpp .....................   Passed    1.36 sec
        Start 110: xoroshiro128plusplus_tests:xoroshiro128plusplus_tests.cpp
 95/125 Test  #94: txindex_tests:txindex_tests.cpp .............................................   Passed    5.05 sec
        Start 111: coinselector_tests:../wallet/test/coinselector_tests.cpp
 96/125 Test  #97: txrequest_tests:txrequest_tests.cpp .........................................   Passed    4.75 sec
        Start 112: feebumper_tests:../wallet/test/feebumper_tests.cpp
 97/125 Test  #98: txvalidation_tests:txvalidation_tests.cpp ...................................   Passed    4.91 sec
        Start 113: group_outputs_tests:../wallet/test/group_outputs_tests.cpp
 98/125 Test   #3: bench_sanity_check_high_priority ............................................   Passed   39.53 sec
        Start 114: init_tests:../wallet/test/init_tests.cpp
 99/125 Test #110: xoroshiro128plusplus_tests:xoroshiro128plusplus_tests.cpp ...................   Passed    1.30 sec
        Start 115: ismine_tests:../wallet/test/ismine_tests.cpp
100/125 Test #112: feebumper_tests:../wallet/test/feebumper_tests.cpp ..........................   Passed    1.61 sec
        Start 116: psbt_wallet_tests:../wallet/test/psbt_wallet_tests.cpp
101/125 Test  #92: transaction_tests:transaction_tests.cpp .....................................   Passed    7.11 sec
        Start 117: wallet_util_tests:../wallet/test/rpc_util_tests.cpp
102/125 Test #104: validation_chainstate_tests:validation_chainstate_tests.cpp .................   Passed    5.47 sec
        Start 118: scriptpubkeyman_tests:../wallet/test/scriptpubkeyman_tests.cpp
103/125 Test #114: init_tests:../wallet/test/init_tests.cpp ....................................   Passed    1.51 sec
        Start 119: spend_tests:../wallet/test/spend_tests.cpp
104/125 Test #115: ismine_tests:../wallet/test/ismine_tests.cpp ................................   Passed    1.43 sec
        Start 120: wallet_crypto_tests:../wallet/test/wallet_crypto_tests.cpp
105/125 Test #113: group_outputs_tests:../wallet/test/group_outputs_tests.cpp ..................   Passed    2.62 sec
        Start 121: wallet_tests:../wallet/test/wallet_tests.cpp
106/125 Test #109: versionbits_tests:versionbits_tests.cpp .....................................   Passed    3.94 sec
        Start 122: wallet_transaction_tests:../wallet/test/wallet_transaction_tests.cpp
107/125 Test #117: wallet_util_tests:../wallet/test/rpc_util_tests.cpp .........................   Passed    1.28 sec
        Start 123: walletdb_tests:../wallet/test/walletdb_tests.cpp
108/125 Test  #49: miniminer_tests:miniminer_tests.cpp .........................................   Passed   16.93 sec
        Start 124: walletload_tests:../wallet/test/walletload_tests.cpp
109/125 Test #118: scriptpubkeyman_tests:../wallet/test/scriptpubkeyman_tests.cpp ..............   Passed    1.23 sec
        Start 125: db_tests:../wallet/test/db_tests.cpp
110/125 Test #116: psbt_wallet_tests:../wallet/test/psbt_wallet_tests.cpp ......................   Passed    1.83 sec
111/125 Test #122: wallet_transaction_tests:../wallet/test/wallet_transaction_tests.cpp ........   Passed    1.42 sec
112/125 Test #123: walletdb_tests:../wallet/test/walletdb_tests.cpp ............................   Passed    1.80 sec
113/125 Test  #24: coins_tests:coins_tests.cpp .................................................   Passed   24.03 sec
114/125 Test  #99: txvalidationcache_tests:txvalidationcache_tests.cpp .........................   Passed    9.79 sec
115/125 Test  #41: interfaces_tests:interfaces_tests.cpp .......................................   Passed   20.81 sec
116/125 Test #120: wallet_crypto_tests:../wallet/test/wallet_crypto_tests.cpp ..................   Passed    3.08 sec
117/125 Test #125: db_tests:../wallet/test/db_tests.cpp ........................................   Passed    2.57 sec
118/125 Test #124: walletload_tests:../wallet/test/walletload_tests.cpp ........................   Passed    4.28 sec
119/125 Test #119: spend_tests:../wallet/test/spend_tests.cpp ..................................   Passed    7.96 sec
120/125 Test  #95: txpackage_tests:txpackage_tests.cpp .........................................   Passed   17.12 sec
121/125 Test   #1: util_test_runner ............................................................   Passed   52.44 sec
122/125 Test #111: coinselector_tests:../wallet/test/coinselector_tests.cpp ....................   Passed   17.63 sec
123/125 Test #103: validation_block_tests:validation_block_tests.cpp ...........................   Passed   26.79 sec
124/125 Test #105: validation_chainstatemanager_tests:validation_chainstatemanager_tests.cpp ...   Passed   31.52 sec
125/125 Test #121: wallet_tests:../wallet/test/wallet_tests.cpp ................................   Passed   25.97 sec

99% tests passed, 1 tests failed out of 125

Total Test time (real) =  67.61 sec

The following tests FAILED:
         87 - streams_tests:streams_tests.cpp (Failed)
Errors while running CTest
Output from these tests are in: /home/ubunpolk/src/bitcoin-hebasto/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
Re-running it got the same result.
ctest -j $(nproc) --rerun-failed --output-on-failure
Test project /home/ubunpolk/src/bitcoin-hebasto/build
    Start 87: streams_tests:streams_tests.cpp
1/1 Test #87: streams_tests:streams_tests.cpp ...***Failed    1.09 sec
Running 10 test cases...
unknown location(0): fatal error: in "streams_tests/xor_file": std::ios_base::failure[abi:cxx11]: AutoFile::write: file handle is nullptr: iostream error
/home/ubunpolk/src/bitcoin-hebasto/src/test/streams_tests.cpp(29): last checkpoint

*** 1 failure is detected in the test module "Bitcoin Core Test Suite"


0% tests passed, 1 tests failed out of 1

Total Test time (real) =   1.09 sec

The following tests FAILED:
         87 - streams_tests:streams_tests.cpp (Failed)
Errors while running CTest

On Windows 11 Pro:

Same results, only 1 failure running all the test suite using test-bitcoin.exe
.\test_bitcoin.exe --show_progress=true
Running 582 test cases...

0%   10   20   30   40   50   60   70   80   90   100%
|----|----|----|----|----|----|----|----|----|----|
***************unknown location(0): fatal error: in "streams_tests/xor_file": std::ios_base::failure[abi:cxx11]: AutoFile::write: file handle is nullptr: iostream error
/home/ubunpolk/src/bitcoin-hebasto/src/test/streams_tests.cpp(29): last checkpoint
************************************

*** 1 failure is detected in the test module "Bitcoin Core Test Suite"
Trying only the failing test streams_tests
.\test_bitcoin.exe --run_test=streams_tests
Running 10 test cases...
unknown location(0): fatal error: in "streams_tests/xor_file": std::ios_base::failure[abi:cxx11]: AutoFile::write: file handle is nullptr: iostream error
/home/ubunpolk/src/bitcoin-hebasto/src/test/streams_tests.cpp(29): last checkpoint

*** 1 failure is detected in the test module "Bitcoin Core Test Suite"

But at least there's an improvement; only 1 left to go!

@hebasto
Copy link
Owner

hebasto commented Dec 13, 2023

The failure in the bench_sanity_check_high_priority test was fixed in bitcoin#28486.

The remained one perhaps is the same as reported in bitcoin#29014.

@pablomartin4btc

Mind testing a fix?

@pablomartin4btc
Copy link
Author

@hebasto the fix works as expected, thanks!

Tested it running all tests successfully on Windows 11 Pro after a cross-build on Ubuntu 22.04 with the fix provided above.

.\test_bitcoin.exe --show_progress=true
Running 588 test cases...

0%   10   20   30   40   50   60   70   80   90   100%
|----|----|----|----|----|----|----|----|----|----|
***************************************************

*** No errors detected

@pablomartin4btc
Copy link
Author

It also passes on WSL.

ctest -I 87,87
Test project /home/ubunpolk/src/bitcoin-hebasto/build
    Start 87: streams_tests:streams_tests.cpp
1/1 Test #87: streams_tests:streams_tests.cpp ...   Passed   95.92 sec

100% tests passed, 0 tests failed out of 1

Total Test time (real) =  95.92 sec

@pablomartin4btc
Copy link
Author

Closing it as resolved. Thanks @hebasto!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants