| 709 | } |
| 710 | |
| 711 | static int ui_delete_make_sidecars(const ui_delete_fixture_t *fx, const char *project) { |
| 712 | char path[1024]; |
| 713 | ui_delete_db_path(fx, project, path, sizeof(path)); |
| 714 | char wal[1040], shm[1040]; |
| 715 | snprintf(wal, sizeof(wal), "%s-wal", path); |
| 716 | snprintf(shm, sizeof(shm), "%s-shm", path); |
| 717 | return th_write_file(wal, "wal") == 0 && th_write_file(shm, "shm") == 0 ? 0 : -1; |
| 718 | } |
| 719 | |
| 720 | static int ui_delete_request(th_server_t *ts, const char *target, char *resp, size_t respsz) { |
| 721 | char req[512]; |
no test coverage detected