MCPcopy Create free account
hub / github.com/git/git / test_reftable_stack__lock_failure

Function test_reftable_stack__lock_failure

t/unit-tests/u-reftable-stack.c:470–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468}
469
470void test_reftable_stack__lock_failure(void)
471{
472 char *dir = get_tmp_dir(__LINE__);
473 struct reftable_write_options opts = { 0 };
474 struct reftable_stack *st = NULL;
475 int i;
476
477 cl_assert_equal_i(reftable_new_stack(&st, dir, &opts), 0);
478 for (i = -1; i != REFTABLE_EMPTY_TABLE_ERROR; i--)
479 cl_assert_equal_i(reftable_stack_add(st, write_error,
480 &i, 0), i);
481
482 reftable_stack_destroy(st);
483 clear_dir(dir);
484}
485
486void test_reftable_stack__add(void)
487{

Callers

nothing calls this directly

Calls 5

get_tmp_dirFunction · 0.85
reftable_new_stackFunction · 0.85
reftable_stack_addFunction · 0.85
reftable_stack_destroyFunction · 0.85
clear_dirFunction · 0.85

Tested by

no test coverage detected