0.0.11: test suite is failing
+ /usr/bin/meson test -C x86_64-redhat-linux-gnu --num-processes 48 --print-errorlogs
/usr/lib/python3.8/site-packages/mesonbuild/dependencies/base.py:1979: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if os.name is not 'nt':
ninja: Entering directory `/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu'
ninja: no work to do.
1/20 test-action-row FAIL 0.03 s (exit status 1)
2/20 test-arrows FAIL 0.06 s (exit status 1)
3/20 test-combo-row FAIL 0.04 s (exit status 1)
4/20 test-dialer FAIL 0.04 s (exit status 1)
5/20 test-dialer-cycle-button FAIL 0.05 s (exit status 1)
6/20 test-dialog FAIL 0.05 s (exit status 1)
7/20 test-expander-row FAIL 0.08 s (exit status 1)
8/20 test-header-bar FAIL 0.04 s (exit status 1)
9/20 test-header-group FAIL 0.06 s (exit status 1)
10/20 test-paginator FAIL 0.04 s (exit status 1)
11/20 test-preferences-group FAIL 0.04 s (exit status 1)
12/20 test-preferences-page FAIL 0.05 s (exit status 1)
13/20 test-preferences-row FAIL 0.03 s (exit status 1)
14/20 test-preferences-window FAIL 0.04 s (exit status 1)
15/20 test-search-bar FAIL 0.04 s (exit status 1)
16/20 test-squeezer FAIL 0.04 s (exit status 1)
17/20 test-string-utf8 FAIL 0.03 s (exit status 1)
18/20 test-value-object FAIL 0.02 s (exit status 1)
19/20 test-view-switcher FAIL 0.03 s (exit status 1)
20/20 test-view-switcher-bar FAIL 0.03 s (exit status 1)
Ok: 0
Expected Fail: 0
Fail: 20
Unexpected Pass: 0
Skipped: 0
Timeout: 0
The output from 10 first failed tests:
1/20 test-action-row FAIL 0.03 s (exit status 1)
--- command ---
G_TEST_BUILDDIR='/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/tests' G_DEBUG='gc-friendly,fatal-warnings' MALLOC_CHECK_='2' PYTHONDONTWRITEBYTECODE='yes' G_TEST_SRCDIR='/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/tests' GSETTINGS_BACKEND='memory' /home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/tests/test-action-row
--- stderr ---
Tests were compiled with G_DISABLE_ASSERT and are likely no-ops. Aborting.
-------
2/20 test-arrows FAIL 0.06 s (exit status 1)
--- command ---
G_TEST_BUILDDIR='/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/tests' G_DEBUG='gc-friendly,fatal-warnings' MALLOC_CHECK_='2' PYTHONDONTWRITEBYTECODE='yes' G_TEST_SRCDIR='/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/tests' GSETTINGS_BACKEND='memory' /home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/tests/test-arrows
--- stderr ---
Tests were compiled with G_DISABLE_ASSERT and are likely no-ops. Aborting.
-------
3/20 test-combo-row FAIL 0.04 s (exit status 1)
--- command ---
G_TEST_BUILDDIR='/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/tests' G_DEBUG='gc-friendly,fatal-warnings' MALLOC_CHECK_='2' PYTHONDONTWRITEBYTECODE='yes' G_TEST_SRCDIR='/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/tests' GSETTINGS_BACKEND='memory' /home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/tests/test-combo-row
--- stderr ---
Tests were compiled with G_DISABLE_ASSERT and are likely no-ops. Aborting.
-------
4/20 test-dialer FAIL 0.04 s (exit status 1)
--- command ---
G_TEST_BUILDDIR='/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/tests' G_DEBUG='gc-friendly,fatal-warnings' MALLOC_CHECK_='2' PYTHONDONTWRITEBYTECODE='yes' G_TEST_SRCDIR='/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/tests' GSETTINGS_BACKEND='memory' /home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/tests/test-dialer
--- stderr ---
Tests were compiled with G_DISABLE_ASSERT and are likely no-ops. Aborting.
-------
5/20 test-dialer-cycle-button FAIL 0.05 s (exit status 1)
--- command ---
G_TEST_BUILDDIR='/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/tests' G_DEBUG='gc-friendly,fatal-warnings' MALLOC_CHECK_='2' PYTHONDONTWRITEBYTECODE='yes' G_TEST_SRCDIR='/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/tests' GSETTINGS_BACKEND='memory' /home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/tests/test-dialer-cycle-button
--- stderr ---
Tests were compiled with G_DISABLE_ASSERT and are likely no-ops. Aborting.
-------
6/20 test-dialog FAIL 0.05 s (exit status 1)
--- command ---
G_TEST_BUILDDIR='/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/tests' G_DEBUG='gc-friendly,fatal-warnings' MALLOC_CHECK_='2' PYTHONDONTWRITEBYTECODE='yes' G_TEST_SRCDIR='/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/tests' GSETTINGS_BACKEND='memory' /home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/tests/test-dialog
--- stderr ---
Tests were compiled with G_DISABLE_ASSERT and are likely no-ops. Aborting.
-------
7/20 test-expander-row FAIL 0.08 s (exit status 1)
--- command ---
G_TEST_BUILDDIR='/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/tests' G_DEBUG='gc-friendly,fatal-warnings' MALLOC_CHECK_='2' PYTHONDONTWRITEBYTECODE='yes' G_TEST_SRCDIR='/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/tests' GSETTINGS_BACKEND='memory' /home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/tests/test-expander-row
--- stderr ---
Tests were compiled with G_DISABLE_ASSERT and are likely no-ops. Aborting.
-------
8/20 test-header-bar FAIL 0.04 s (exit status 1)
--- command ---
G_TEST_BUILDDIR='/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/tests' G_DEBUG='gc-friendly,fatal-warnings' MALLOC_CHECK_='2' PYTHONDONTWRITEBYTECODE='yes' G_TEST_SRCDIR='/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/tests' GSETTINGS_BACKEND='memory' /home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/tests/test-header-bar
--- stderr ---
Tests were compiled with G_DISABLE_ASSERT and are likely no-ops. Aborting.
-------
9/20 test-header-group FAIL 0.06 s (exit status 1)
--- command ---
G_TEST_BUILDDIR='/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/tests' G_DEBUG='gc-friendly,fatal-warnings' MALLOC_CHECK_='2' PYTHONDONTWRITEBYTECODE='yes' G_TEST_SRCDIR='/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/tests' GSETTINGS_BACKEND='memory' /home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/tests/test-header-group
--- stderr ---
Tests were compiled with G_DISABLE_ASSERT and are likely no-ops. Aborting.
-------
10/20 test-paginator FAIL 0.04 s (exit status 1)
--- command ---
G_TEST_BUILDDIR='/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/tests' G_DEBUG='gc-friendly,fatal-warnings' MALLOC_CHECK_='2' PYTHONDONTWRITEBYTECODE='yes' G_TEST_SRCDIR='/home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/tests' GSETTINGS_BACKEND='memory' /home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/tests/test-paginator
--- stderr ---
Tests were compiled with G_DISABLE_ASSERT and are likely no-ops. Aborting.
-------
Full log written to /home/tkloczko/rpmbuild/BUILD/libhandy-v0.0.11/x86_64-redhat-linux-gnu/meson-logs/testlog.txt
error: Bad exit status from /var/tmp/rpm-tmp.uAhoG3 (%check)
Looks like it is about incorrect using asserts.
[tkloczko@barrel tests]$ grep g_assert * -w
test-header-bar.c: g_assert (hdy_header_bar_get_custom_title (bar) == widget);
test-header-group.c: g_assert (bar1 == bar2);
test-header-group.c: g_assert (bar1 == bar2);
test-header-group.c: g_assert (bar1 == bar2);
test-preferences-group.c: g_assert (G_TYPE_CHECK_INSTANCE_TYPE (gtk_widget_get_parent (GTK_WIDGET (row)), GTK_TYPE_LIST_BOX));
test-preferences-group.c: g_assert (G_TYPE_CHECK_INSTANCE_TYPE (gtk_widget_get_parent (widget), GTK_TYPE_BOX));
test-squeezer.c: g_assert (hdy_squeezer_get_visible_child (squeezer) == child);
test-squeezer.c: g_assert (hdy_squeezer_get_visible_child (squeezer) == child);
test-view-switcher-bar.c: g_assert (hdy_view_switcher_bar_get_stack (bar) == stack);
test-view-switcher.c: g_assert (hdy_view_switcher_get_stack (view_switcher) == stack);
g_assert()
should not be used in test suite.
https://gitlab.gnome.org/GNOME/glib/issues/976