| 322 | #endif |
| 323 | |
| 324 | static bool gf_capture_cleanup(gf_capture_t *capture) { |
| 325 | bool ok = true; |
| 326 | if (capture->out[0] && cbm_unlink(capture->out) != 0 && errno != ENOENT) |
| 327 | ok = false; |
| 328 | if (capture->err[0] && cbm_unlink(capture->err) != 0 && errno != ENOENT) |
| 329 | ok = false; |
| 330 | if (capture->in[0] && cbm_unlink(capture->in) != 0 && errno != ENOENT) |
| 331 | ok = false; |
| 332 | if (capture->directory[0] && cbm_rmdir(capture->directory) != 0 && errno != ENOENT) |
| 333 | ok = false; |
| 334 | return ok; |
| 335 | } |
| 336 | |
| 337 | static bool gf_capture_create(cbm_git_facts_t *facts, gf_capture_t *capture, |
| 338 | cbm_git_facts_error_t *error) { |
no test coverage detected