mirror of
https://github.com/isar/libmdbx.git
synced 2025-12-20 18:32:21 +08:00
mdbx-test: don't fail on key-space overflow.
Change-Id: I22a8cb359849c4c02cd393047cb7ea33974607fd
This commit is contained in:
@@ -65,8 +65,10 @@ bool testcase_hill::run() {
|
||||
|
||||
while (should_continue()) {
|
||||
const keygen::serial_t a_serial = serial_count;
|
||||
if (unlikely(!keyvalue_maker.increment(serial_count, 1)))
|
||||
failure("uphill: unexpected key-space overflow");
|
||||
if (unlikely(!keyvalue_maker.increment(serial_count, 1))) {
|
||||
log_notice("uphill: unexpected key-space overflow");
|
||||
break;
|
||||
}
|
||||
|
||||
const keygen::serial_t b_serial = serial_count;
|
||||
assert(b_serial > a_serial);
|
||||
@@ -186,7 +188,7 @@ bool testcase_hill::run() {
|
||||
}
|
||||
}
|
||||
|
||||
while (serial_count > 0) {
|
||||
while (serial_count > 1) {
|
||||
if (unlikely(!keyvalue_maker.increment(serial_count, -2)))
|
||||
failure("downhill: unexpected key-space underflow");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user