This checks that the buffering logic in CBufferedFile/LoadExternalBlockFile
works as intended and doesn't fail for blacks larger than the buffer size.
Details
Details
make check
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- test-load-external-block-file
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 257 Build 257: arc lint + arc unit
Event Timeline
src/test/validation_tests.cpp | ||
---|---|---|
39 ↗ | (On Diff #434) | Remove. |
47 ↗ | (On Diff #434) | size_t written = fwrite(chainparams.MessageStart(), CMessageHeader::MESSAGE_START_SIZE, 1, fp) BOOST_CHECK_EQUAL(written, 1); |
55 ↗ | (On Diff #434) | Please BOOST_CHECK the size of the block is larger than what you expect to test. |
67 ↗ | (On Diff #434) | I'm not sure what this is testing. You need to be asserting something at the end. |