[glade/composite-templates-new: 4/9] create-widgets.c test: Avoid GtkFileChooserButton
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/composite-templates-new: 4/9] create-widgets.c test: Avoid GtkFileChooserButton
- Date: Fri, 5 Apr 2013 06:19:29 +0000 (UTC)
commit fdd5289f5e711dca74edf6810e244adbba22d7bd
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Fri Apr 5 15:14:39 2013 +0900
create-widgets.c test: Avoid GtkFileChooserButton
Currently this one causes subsequent tests to fail due to a leaked
GTask callback.
tests/create-widgets.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/tests/create-widgets.c b/tests/create-widgets.c
index 97e5e1a..80c53f3 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]