| 680 | } |
| 681 | } |
| 682 | static int pf_fail_rename(const char *stage, const char *destination, void *context) { |
| 683 | (void)destination; |
| 684 | pf_hook_t *hook = context; |
| 685 | hook->rename_called = true; |
| 686 | if (strlen(stage) < sizeof(hook->stage)) |
| 687 | memcpy(hook->stage, stage, strlen(stage) + 1); |
| 688 | errno = EACCES; |
| 689 | return -1; |
| 690 | } |
| 691 | static bool pf_hook_failure(pf_fixture_t *f, pf_hook_kind_t kind) { |
| 692 | cbm_pipeline_frozen_t *owner = NULL; |
| 693 | if (!pf_source_write(f, "ordinary.c", pf_ordinary) || |
nothing calls this directly
no outgoing calls
no test coverage detected