Fix cmake based sqlite3 test when run twice in a row

The second (and subsequent) time(s) would always fail because the test file
already exists at that point. Just force an overwrite in this case.
This commit is contained in:
Geert Janssens 2017-08-07 11:55:15 +02:00
parent f5c8ae29d6
commit 4f2d34f043

View File

@ -30,7 +30,7 @@ int main()
gnc_engine_init(0, no_args);
QofSession * s = qof_session_new();
qof_session_begin(s, "sqlite3:///tmp/blah.gnucash", 0, 1, 0);
qof_session_begin(s, "sqlite3:///tmp/blah.gnucash", 0, 1, 1);
qof_session_load(s, NULL);
qof_session_save(s, NULL);
qof_session_end(s);