From a66dcf2c036c9760e9b6daddccd55077be0b052b Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sun, 2 Sep 2012 22:40:57 +0200 Subject: tests: register the application explicitly This usually happens in _run, it seems, but the tests don't do that, so we need to call this manually. Otherwise the test will fail with: (/home/xan/git/epiphany/build/tests/test-ephy-session:9865): GLib-GIO-CRITICAL **: g_application_list_actions: assertion `application->priv->is_registered' failed No idea why this has started happening only now. https://bugzilla.gnome.org/show_bug.cgi?id=682653 --- tests/ephy-shell-test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/ephy-shell-test.c') diff --git a/tests/ephy-shell-test.c b/tests/ephy-shell-test.c index 84626ae26..8518de115 100644 --- a/tests/ephy-shell-test.c +++ b/tests/ephy-shell-test.c @@ -332,13 +332,14 @@ main (int argc, char *argv[]) ephy_debug_init (); ephy_embed_prefs_init (); - _ephy_shell_create_instance (EPHY_EMBED_SHELL_MODE_PRIVATE); - if (!ephy_file_helpers_init (NULL, EPHY_FILE_HELPERS_PRIVATE_PROFILE | EPHY_FILE_HELPERS_ENSURE_EXISTS, NULL)) { g_debug ("Something wrong happened with ephy_file_helpers_init()"); return -1; } + _ephy_shell_create_instance (EPHY_EMBED_SHELL_MODE_PRIVATE); + g_application_register (G_APPLICATION (ephy_shell), NULL, NULL); + g_test_add_func ("/src/ephy-shell/basic_embeds", test_ephy_shell_basic_embeds); -- cgit v1.2.3