No description provided.
Extend #7956 with one more test. #7992
pull TheBlueMatt wants to merge 3 commits into bitcoin:master from TheBlueMatt:16-5-7956-update changing 2 files +122 −1-
TheBlueMatt commented at 12:56 AM on May 3, 2016: contributor
-
chain: Add assertion in case of missing records in index db 84c13e759d
-
6030625631
test: Add more thorough test for dbwrapper iterators
I made a silly mistake in a database wrapper where keys were sorted by char instead of uint8_t. As x86 char is signed the sorting for the block index database was messed up, resulting in a segfault due to missing records. Add a test to catch: - Wrong sorting - Seeking errors - Iteration result not complete
- laanwj added the label Tests on May 3, 2016
- laanwj cross-referenced this on May 3, 2016 from issue test: Add more thorough test for dbwrapper iterators by laanwj
-
in src/test/dbwrapper_tests.cpp:None in 7be47549f6 outdated
255 | + 256 | + template <typename Stream, typename Operation> 257 | + inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) { 258 | + if (ser_action.ForRead()) { 259 | + str.clear(); 260 | + char c;
paveljanik commented at 6:14 PM on May 3, 2016:Please initialize this (as
clangsaid 8):char c = '\0';
TheBlueMatt commented at 2:45 AM on May 18, 2016:Fixed.
paveljanik commented at 6:15 PM on May 3, 2016: contributorConcept ACK
sipa commented at 5:57 AM on May 17, 2016: memberAdd test for dbwrapper iterators with same-prefix keys. 269a4402a8TheBlueMatt force-pushed on May 18, 2016sipa cross-referenced this on May 26, 2016 from issue Addrman offline attempts by gmaxwellsipa merged this on Jun 2, 2016sipa closed this on Jun 2, 2016sipa referenced this in commit ec45cc5e27 on Jun 2, 2016MarcoFalke referenced this in commit 658307e835 on Jun 9, 2016nomnombtc referenced this in commit e50b833d01 on Nov 12, 2016nomnombtc referenced this in commit 3880957500 on Nov 12, 2016nomnombtc referenced this in commit 99cfc5957d on Nov 13, 2016sickpig referenced this in commit 5f8ab86255 on Nov 14, 2016str4d cross-referenced this on Apr 4, 2018 from issue Additional dbwrapper tests by str4dzkbot referenced this in commit 564a229927 on Apr 4, 2018zkbot referenced this in commit dc57d6a7bc on Apr 4, 2018furszy cross-referenced this on Apr 13, 2021 from issue [Test] Expand dbwrapper unit test coverage by furszyrandom-zebra referenced this in commit d1210fa46e on Apr 23, 2021bitcoin locked this on Sep 8, 2021
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-19 06:55 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-19 06:55 UTC