| 142 | } |
| 143 | |
| 144 | static void integration_teardown(void) { |
| 145 | if (g_srv) { |
| 146 | cbm_mcp_server_free(g_srv); |
| 147 | g_srv = NULL; |
| 148 | } |
| 149 | free(g_project); |
| 150 | g_project = NULL; |
| 151 | |
| 152 | /* Clean up temp project */ |
| 153 | th_rmtree(g_tmpdir); |
| 154 | |
| 155 | /* Clean up cache db */ |
| 156 | unlink(g_dbpath); |
| 157 | char wal[520], shm[520]; |
| 158 | snprintf(wal, sizeof(wal), "%s-wal", g_dbpath); |
| 159 | snprintf(shm, sizeof(shm), "%s-shm", g_dbpath); |
| 160 | unlink(wal); |
| 161 | unlink(shm); |
| 162 | } |
| 163 | |
| 164 | /* ══════════════════════════════════════════════════════════════════ |
| 165 | * PIPELINE INTEGRATION TESTS |
no test coverage detected