From: Christian Dywan Date: Thu, 17 Nov 2011 23:52:35 +0000 (+0100) Subject: Ignore form history database errors in unit test X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=975c2446228351474c49264225703da34973b5ec;p=midori Ignore form history database errors in unit test --- diff --git a/extensions/formhistory.c b/extensions/formhistory.c index 76b39c34..8b20aa13 100644 --- a/extensions/formhistory.c +++ b/extensions/formhistory.c @@ -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);