Best-effort cleanup of the temp cache dir + DB sidecar files. */
| 101 | |
| 102 | /* Best-effort cleanup of the temp cache dir + DB sidecar files. */ |
| 103 | static void repro607_cleanup(const char *tmp_cache, const char *db_path) { |
| 104 | unlink(db_path); |
| 105 | char wal[730], shm[730]; |
| 106 | snprintf(wal, sizeof(wal), "%s-wal", db_path); |
| 107 | snprintf(shm, sizeof(shm), "%s-shm", db_path); |
| 108 | unlink(wal); |
| 109 | unlink(shm); |
| 110 | rmdir(tmp_cache); |
| 111 | } |
| 112 | |
| 113 | /* ── Test 1: default (reset=false) PRESERVES the index ──────────────── |
| 114 | * |