This is a backport of core#16975
Details
Details
- Reviewers
majcosta - Group Reviewers
Restricted Project - Commits
- rABCee4e128c034d: test: Show debug log on unit test failure
ninja check
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
i think this should be tested by others, and discussed. The result adds a lot of verbosity, and usually unit test failures are already quite verbose (because of the long loops).
I tried it with the following patch:
diff --git a/src/avalanche/test/processor_tests.cpp b/src/avalanche/test/processor_tests.cpp index 240522d2c7..5d3d895cf6 100644 --- a/src/avalanche/test/processor_tests.cpp +++ b/src/avalanche/test/processor_tests.cpp @@ -336,6 +336,7 @@ BOOST_AUTO_TEST_CASE(block_register) { BOOST_CHECK_EQUAL(invs.size(), 1); BOOST_CHECK_EQUAL(invs[0].type, MSG_BLOCK); BOOST_CHECK(invs[0].hash == blockHash); + BOOST_CHECK(false); // Newly added blocks' state reflect the blockchain. BOOST_CHECK(m_processor->isAccepted(pindex));