| 778 | } |
| 779 | |
| 780 | static void ui_delete_fixture_cleanup(ui_delete_fixture_t *fx) { |
| 781 | if (fx->watcher) |
| 782 | cbm_watcher_free(fx->watcher); |
| 783 | if (fx->store) |
| 784 | cbm_store_close(fx->store); |
| 785 | if (fx->saved_cache_dir) { |
| 786 | cbm_setenv("CBM_CACHE_DIR", fx->saved_cache_dir, 1); |
| 787 | free(fx->saved_cache_dir); |
| 788 | } else { |
| 789 | cbm_unsetenv("CBM_CACHE_DIR"); |
| 790 | } |
| 791 | th_cleanup(fx->tmpdir); |
| 792 | } |
| 793 | |
| 794 | static void ui_delete_db_path(const ui_delete_fixture_t *fx, const char *project, char *out, |
| 795 | size_t outsz) { |
no test coverage detected