Ignore form history database errors in unit test

This commit is contained in:
Christian Dywan 2011-11-18 00:52:35 +01:00
parent 583c5be7ef
commit 975c244622

View file

@ -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);
}