| 468 | } |
| 469 | |
| 470 | void 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 | |
| 486 | void test_reftable_stack__add(void) |
| 487 | { |
nothing calls this directly
no test coverage detected