| 684 | } |
| 685 | |
| 686 | static void ui_delete_fixture_cleanup(ui_delete_fixture_t *fx) { |
| 687 | if (fx->watcher) |
| 688 | cbm_watcher_free(fx->watcher); |
| 689 | if (fx->store) |
| 690 | cbm_store_close(fx->store); |
| 691 | if (fx->saved_cache_dir) { |
| 692 | cbm_setenv("CBM_CACHE_DIR", fx->saved_cache_dir, 1); |
| 693 | free(fx->saved_cache_dir); |
| 694 | } else { |
| 695 | cbm_unsetenv("CBM_CACHE_DIR"); |
| 696 | } |
| 697 | th_cleanup(fx->tmpdir); |
| 698 | } |
| 699 | |
| 700 | static void ui_delete_db_path(const ui_delete_fixture_t *fx, const char *project, char *out, |
| 701 | size_t outsz) { |
no test coverage detected