3.37.0: test suite fails because glade uses incorrectly asserts in test units
+ /usr/bin/meson test -C x86_64-redhat-linux-gnu --num-processes 48 --print-errorlogs
ninja: Entering directory `/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/x86_64-redhat-linux-gnu'
ninja: no work to do.
1/4 add-child FAIL 0.12s (exit status 1)
2/4 create-widgets FAIL 0.08s (exit status 1)
3/4 modules FAIL 0.14s (exit status 1)
4/4 toplevel-order FAIL 0.10s (exit status 1)
Ok: 0
Expected Fail: 0
Fail: 4
Unexpected Pass: 0
Skipped: 0
Timeout: 0
The output from the failed tests:
1/4 add-child FAIL 0.12s (exit status 1)
--- command ---
01:28:23 GLADE_CATALOG_SEARCH_PATH='/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/plugins/gtk+' GLADE_ICON_THEME_PATH='/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/plugins/gtk+/icons/22x22' GLADE_MODULE_SEARCH_PATH='/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/x86_64-redhat-linux-gnu/plugins/gtk+' GLADE_TESTING='1' GLADE_PIXMAP_DIR='/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/data/icons' /home/tkloczko/rpmbuild/BUILD/glade-3.37.0/x86_64-redhat-linux-gnu/tests/add-child
--- stderr ---
Tests were compiled with G_DISABLE_ASSERT and are likely no-ops. Aborting.
-------
2/4 create-widgets FAIL 0.08s (exit status 1)
--- command ---
01:28:23 GLADE_CATALOG_SEARCH_PATH='/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/plugins/gtk+' GLADE_ICON_THEME_PATH='/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/plugins/gtk+/icons/22x22' GLADE_MODULE_SEARCH_PATH='/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/x86_64-redhat-linux-gnu/plugins/gtk+' GLADE_TESTING='1' GLADE_PIXMAP_DIR='/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/data/icons' /home/tkloczko/rpmbuild/BUILD/glade-3.37.0/x86_64-redhat-linux-gnu/tests/create-widgets
--- stderr ---
Tests were compiled with G_DISABLE_ASSERT and are likely no-ops. Aborting.
-------
3/4 modules FAIL 0.14s (exit status 1)
--- command ---
01:28:23 GLADE_CATALOG_SEARCH_PATH='/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/plugins/gtk+:/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/plugins/python:/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/plugins/gjs:/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/tests/catalogs' GLADE_ICON_THEME_PATH='/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/plugins/gtk+/icons/22x22' GLADE_TESTING='1' GLADE_PIXMAP_DIR='/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/data/icons' GLADE_MODULE_SEARCH_PATH='/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/x86_64-redhat-linux-gnu/plugins/gtk+:/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/x86_64-redhat-linux-gnu/plugins/python:/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/x86_64-redhat-linux-gnu/plugins/gjs:/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/tests/modules' /home/tkloczko/rpmbuild/BUILD/glade-3.37.0/x86_64-redhat-linux-gnu/tests/modules
--- stderr ---
Tests were compiled with G_DISABLE_ASSERT and are likely no-ops. Aborting.
-------
4/4 toplevel-order FAIL 0.10s (exit status 1)
--- command ---
01:28:23 GLADE_CATALOG_SEARCH_PATH='/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/plugins/gtk+' GLADE_ICON_THEME_PATH='/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/plugins/gtk+/icons/22x22' GLADE_MODULE_SEARCH_PATH='/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/x86_64-redhat-linux-gnu/plugins/gtk+' GLADE_TESTING='1' GLADE_PIXMAP_DIR='/home/tkloczko/rpmbuild/BUILD/glade-3.37.0/data/icons' /home/tkloczko/rpmbuild/BUILD/glade-3.37.0/x86_64-redhat-linux-gnu/tests/toplevel-order
--- stderr ---
Tests were compiled with G_DISABLE_ASSERT and are likely no-ops. Aborting.
g_assert()
should not be used in test units.
[tkloczko@barrel tests]$ grep g_assert *
add-child.c: g_assert (glade_widget_get_parent (gchild) == gparent);
add-child.c: g_assert (gparent_finalized);
add-child.c: g_assert (gchild_finalized);
add-child.c: g_assert (parent_finalized);
add-child.c: g_assert (child_finalized);
add-child.c: g_assert (gtk_widget_get_parent (GTK_WIDGET (child)) == GTK_WIDGET (parent));
add-child.c: g_assert (gtk_menu_item_get_submenu (GTK_MENU_ITEM (parent)) == GTK_WIDGET (child));
add-child.c: g_assert (gtk_menu_tool_button_get_menu (GTK_MENU_TOOL_BUTTON (parent)) == GTK_WIDGET (child));
add-child.c: g_assert_not_reached ();
add-child.c: g_assert (g_list_find (cells, child) != NULL);
add-child.c: g_assert (gtk_tree_view_get_column (GTK_TREE_VIEW (parent), 0) == GTK_TREE_VIEW_COLUMN (child));
grep: catalogs: Is a directory
create-widgets.c: g_assert (GLADE_IS_WIDGET (widget));
create-widgets.c: g_assert (G_IS_OBJECT (object));
create-widgets.c: g_assert (widget_finalized);
create-widgets.c: g_assert (object_finalized);
grep: modules: Is a directory
modules.c: g_assert (GLADE_IS_WIDGET_ADAPTOR (adaptor));
modules.c: g_assert (GLADE_IS_WIDGET (widget));
modules.c: g_assert (G_IS_OBJECT (object));
modules.c: g_assert (g_strcmp0 (G_OBJECT_TYPE_NAME (object), data) == 0);
toplevel-order.c: g_assert_cmpstr (l->data, ==, *orig_nodes);
toplevel-order.c: g_assert (l == NULL && *orig_nodes == NULL);
toplevel-order.c: g_assert (g_close (g_file_open_tmp ("glade-toplevel-order-XXXXXX.glade", &temp_path, NULL), NULL));
toplevel-order.c: g_assert ((xml = g_resources_lookup_data (project_path, 0, NULL)));
toplevel-order.c: g_assert (g_file_set_contents (temp_path, xml_data, xml_size, NULL));
toplevel-order.c: g_assert ((project = glade_project_load (temp_path)));
toplevel-order.c: g_assert (glade_project_save (project, temp_path, NULL));
toplevel-order.c: g_assert ((project = glade_project_load (temp_path)));
toplevel-order.c: g_assert ((toplevels = glade_project_toplevels (project)));
toplevel-order.c: g_assert ((toplevel = glade_widget_get_from_gobject (l->data)));
toplevel-order.c: g_assert_cmpstr (glade_widget_get_name (toplevel), ==, *names);
toplevel-order.c: g_assert (!l && !*names);