Skip to content
This repository was archived by the owner on Feb 18, 2026. It is now read-only.

Commit 9b8ff10

Browse files
committed
fix(test_vtab): use platform-specific temp path for Windows
Windows doesn't have /tmp directory. Use current directory on Windows, /tmp on Unix. Fixes SQLITE_CANTOPEN (error 14) in vtab reopen tests.
1 parent 68716f4 commit 9b8ff10

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/c/test_vtab.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@
3030
extern int sqlite3_diskann_init(sqlite3 *db, char **pzErrMsg,
3131
const sqlite3_api_routines *pApi);
3232

33+
/* Platform-specific temp directory */
34+
#ifdef _WIN32
35+
#define VTAB_TEST_DB "diskann_test_vtab.db"
36+
#else
3337
#define VTAB_TEST_DB "/tmp/diskann_test_vtab.db"
38+
#endif
3439

3540
/**************************************************************************
3641
** Helpers

0 commit comments

Comments
 (0)