From 975c2446228351474c49264225703da34973b5ec Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 18 Nov 2011 00:52:35 +0100 Subject: [PATCH] Ignore form history database errors in unit test --- extensions/formhistory.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.5