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,7 +412,9 @@ formhistory_activate_cb (MidoriExtension* extension,
|
|||
filename = g_build_filename (config_dir, "forms.db", NULL);
|
||||
if (sqlite3_open (filename, &db) != SQLITE_OK)
|
||||
{
|
||||
g_warning (_("Failed to open database: %s\n"), sqlite3_errmsg (db));
|
||||
/* 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);
|
||||
}
|
||||
g_free (filename);
|
||||
|
|
Loading…
Reference in a new issue