Ignore form history database errors in unit test
This commit is contained in:
parent
583c5be7ef
commit
975c244622
1 changed files with 3 additions and 1 deletions
|
@ -412,6 +412,8 @@ formhistory_activate_cb (MidoriExtension* extension,
|
|||
filename = g_build_filename (config_dir, "forms.db", NULL);
|
||||
if (sqlite3_open (filename, &db) != SQLITE_OK)
|
||||
{
|
||||
/* If the folder is /, this is a test run, thus no error */
|
||||
if (!g_str_equal (midori_extension_get_config_dir (extension), "/"))
|
||||
g_warning (_("Failed to open database: %s\n"), sqlite3_errmsg (db));
|
||||
sqlite3_close (db);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue