summaryrefslogtreecommitdiff
path: root/tests/create-widgets.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2013-04-05 15:14:39 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2013-04-05 15:17:56 +0900
commitfdd5289f5e711dca74edf6810e244adbba22d7bd (patch)
treefe0d822649edad3e865847fc0fc72df218e79443 /tests/create-widgets.c
parentc009f66e1644bb982d6dab37c58dd56983e267f6 (diff)
downloadglade-fdd5289f5e711dca74edf6810e244adbba22d7bd.tar.gz
create-widgets.c test: Avoid GtkFileChooserButton
Currently this one causes subsequent tests to fail due to a leaked GTask callback.
Diffstat (limited to 'tests/create-widgets.c')
-rw-r--r--tests/create-widgets.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/create-widgets.c b/tests/create-widgets.c
index 97e5e1a8..80c53f3b 100644
--- a/tests/create-widgets.c
+++ b/tests/create-widgets.c
@@ -57,7 +57,7 @@ test_create_widget (gconstpointer data)
/* filechoosers hold a reference until an async operation is complete */
if (GTK_IS_FILE_CHOOSER (object))
{
- g_timeout_add (500, main_loop_quit_cb, NULL);
+ g_timeout_add (2000, main_loop_quit_cb, NULL);
gtk_main();
}
/* Our plugin code adds an idle when cell renderers are created */
@@ -103,12 +103,16 @@ main (int argc,
adaptor_type != GTK_TYPE_ICON_FACTORY &&
/* FIXME: Combo box types dont finalize properly for some reason */
!g_type_is_a (adaptor_type, GTK_TYPE_COMBO_BOX) &&
+ /* FIXME: FileChooserButton leaks a GTask which will crash in the following test */
+ adaptor_type != GTK_TYPE_FILE_CHOOSER_BUTTON &&
/* FIXME: App choosers leak some async operations after finalization, causing subsequent tests to fail */
!g_type_is_a (adaptor_type, GTK_TYPE_APP_CHOOSER))
{
gchar *test_path = g_strdup_printf ("/CreateWidget/%s", glade_widget_adaptor_get_name (adaptor));
g_test_add_data_func (test_path, adaptor, test_create_widget);
+
+ g_free (test_path);
}
}
g_list_free (adaptors);