reftable: check reftable_stack_auto_compact() return value
Fixes a problem detected by Coverity. Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
27e27ee224
commit
f7445865f2
@ -814,6 +814,7 @@ static void test_reftable_stack_auto_compaction(void)
|
||||
EXPECT_ERR(err);
|
||||
|
||||
err = reftable_stack_auto_compact(st);
|
||||
EXPECT_ERR(err);
|
||||
EXPECT(i < 3 || st->merged->stack_len < 2 * fastlog2(i));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user