From: Olivier Goffart Date: Mon, 3 Jul 2017 15:24:56 +0000 (+0200) Subject: Fix check_csync_update X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~704^2^2~74 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=30095a0c3f54195016f35954e0ca29eec1c03a82;p=nextcloud-desktop.git Fix check_csync_update Commit 816096311027bac0f391ea97d0b61b4175e9b8f9 changed the SQL requests from csync to read from the checksumtype table. So we need to add this table in the fake DB as well --- diff --git a/csync/tests/csync_tests/check_csync_update.c b/csync/tests/csync_tests/check_csync_update.c index 6bd731947..695616b2c 100644 --- a/csync/tests/csync_tests/check_csync_update.c +++ b/csync/tests/csync_tests/check_csync_update.c @@ -52,6 +52,13 @@ static void statedb_create_metadata_table(sqlite3 *db) rc = sqlite3_exec(db, sql, NULL, NULL, NULL); //const char *msg = sqlite3_errmsg(db); assert_int_equal( rc, SQLITE_OK ); + + sql = "CREATE TABLE IF NOT EXISTS checksumtype(" + "id INTEGER PRIMARY KEY," + "name TEXT UNIQUE" + ");"; + rc = sqlite3_exec(db, sql, NULL, NULL, NULL); + assert_int_equal( rc, SQLITE_OK ); } }