mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-25 01:37:09 +00:00
use proper in-memory database for sqlite3 tests
This commit is contained in:
parent
63ad439405
commit
a51201cc73
@ -53,7 +53,7 @@ static git_odb *open_sqlite_odb(void)
|
|||||||
if (git_odb_new(&odb) < GIT_SUCCESS)
|
if (git_odb_new(&odb) < GIT_SUCCESS)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (git_odb_backend_sqlite(&sqlite, ":memory") < GIT_SUCCESS)
|
if (git_odb_backend_sqlite(&sqlite, ":memory:") < GIT_SUCCESS)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (git_odb_add_backend(odb, sqlite, 0) < GIT_SUCCESS)
|
if (git_odb_add_backend(odb, sqlite, 0) < GIT_SUCCESS)
|
||||||
|
Loading…
Reference in New Issue
Block a user