| 468 | } |
| 469 | |
| 470 | static void ui_delete_fixture_cleanup(ui_delete_fixture_t *fx) { |
| 471 | if (fx->watcher) |
| 472 | cbm_watcher_free(fx->watcher); |
| 473 | if (fx->store) |
| 474 | cbm_store_close(fx->store); |
| 475 | if (fx->saved_cache_dir) { |
| 476 | cbm_setenv("CBM_CACHE_DIR", fx->saved_cache_dir, 1); |
| 477 | free(fx->saved_cache_dir); |
| 478 | } else { |
| 479 | cbm_unsetenv("CBM_CACHE_DIR"); |
| 480 | } |
| 481 | th_cleanup(fx->tmpdir); |
| 482 | } |
| 483 | |
| 484 | static void ui_delete_db_path(const ui_delete_fixture_t *fx, const char *project, char *out, |
| 485 | size_t outsz) { |
no test coverage detected