test failures during glib bootstrap
Running test after bootstrapping glib-2.80.0 fails:
1/337 glib:glib+core / atomic OK 0.12s 2 subtests passed
2/337 glib:glib+core / base64 OK 0.11s 28 subtests passed
...
180/337 glib:gio / buffered-output-stream OK 0.03s 5 subtests passed
▶ 181/337 /contenttype/guess - GLib-GIO:ERROR:../gio/tests/contenttype.c:48:test_guess: assertion failed (expected == res): ("text/plain" == "application/octet-stream") FAIL
▶ 181/337 ERROR
181/337 glib:gio / contenttype ERROR 0.01s killed by signal 6 SIGABRT
>>> GIO_MODULE_DIR='' MALLOC_PERTURB_=212 LD_LIBRARY_PATH=/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio:/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gmodule:/home/ncopa/aports/main/glib/src/glib-2.80.0/output/glib:/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gobject G_DEBUG=gc-friendly G_TEST_BUILDDIR=/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio/tests GIO_LAUNCH_DESKTOP=/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio/gio-launch-desktop ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 G_ENABLE_DIAGNOSTIC=1 G_TEST_SRCDIR=/home/ncopa/aports/main/glib/src/glib-2.80.0/gio/tests MALLOC_CHECK_=2 /home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio/tests/contenttype
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀ ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stderr:
**
GLib-GIO:ERROR:../gio/tests/contenttype.c:48:test_guess: assertion failed (expected == res): ("text/plain" == "application/octet-stream")
(test program exited with status code -6)
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
182/337 glib:gio / credentials OK 0.01s 1 subtests passed
...
232/337 glib:gio / unix-fd OK 0.02s 2 subtests passed
▶ 233/337 /gdbus/x11-autolaunch - GLib-GIO:ERROR:../gio/tests/gdbus-address-get-session.c:148:test_x11_autolaunch: stderr of child process (/gdbus/x11-autolaunch [2858]) contains invalid match: ?* FAIL
▶ 233/337 ERROR
233/337 glib:gio / gdbus-address-get-session ERROR 0.02s killed by signal 6 SIGABRT
>>> GIO_MODULE_DIR='' MALLOC_PERTURB_=208 LD_LIBRARY_PATH=/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio:/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gmodule:/home/ncopa/aports/main/glib/src/glib-2.80.0/output/glib:/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gobject G_DEBUG=gc-friendly G_TEST_BUILDDIR=/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio/tests GIO_LAUNCH_DESKTOP=/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio/gio-launch-desktop ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 G_ENABLE_DIAGNOSTIC=1 G_TEST_SRCDIR=/home/ncopa/aports/main/glib/src/glib-2.80.0/gio/tests MALLOC_CHECK_=2 /home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio/tests/gdbus-address-get-session
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀ ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stderr:
**
GLib-GIO:ERROR:../gio/tests/gdbus-address-get-session.c:148:test_x11_autolaunch: stderr of child process (/gdbus/x11-autolaunch [2858]) contains invalid match: ?*
(test program exited with status code -6)
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
234/337 glib:gio / win32-appinfo OK 0.02s 5 subtests passed
235/337 glib:gio+cpp / cxx OK 0.02s
236/337 glib:gio+cpp / cxx-98 OK 0.01s
237/337 glib:gobject+slow / closure-refcount OK 1.64s 1 subtests passed
238/337 glib:gio+cpp / cxx-03 OK 0.02s
239/337 glib:gio+cpp / cxx-11 OK 0.01s
240/337 glib:gio+cpp / cxx-14 OK 0.01s
241/337 glib:gio+cpp / cxx-17 OK 0.01s
242/337 glib:gio+cpp / cxx-20 OK 0.01s
243/337 glib:gio+cpp / cxx-2b OK 0.02s
▶ 244/337 /gdbus/codegen-peer-to-peer - GLib-GIO:ERROR:../gio/tests/gdbus-peer.c:2183:codegen_test_peer: assertion failed (error == NULL): GDBus.Error:org.freedesktop.DBus.Error.Failed: Unable to load /var/lib/dbus/machine-id or /etc/machine-id: Failed to open file */var/lib/dbus/machine-id*: No such file or directory (g-dbus-error-quark, 0) FAIL
▶ 244/337 ERROR
244/337 glib:gio / gdbus-peer ERROR 0.71s killed by signal 6 SIGABRT
>>> LD_LIBRARY_PATH=/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gmodule:/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio/tests/gdbus-object-manager-example:/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio:/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gobject:/home/ncopa/aports/main/glib/src/glib-2.80.0/output/glib GIO_MODULE_DIR='' MALLOC_PERTURB_=221 G_DEBUG=gc-friendly G_TEST_BUILDDIR=/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio/tests GIO_LAUNCH_DESKTOP=/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio/gio-launch-desktop ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 G_ENABLE_DIAGNOSTIC=1 G_TEST_SRCDIR=/home/ncopa/aports/main/glib/src/glib-2.80.0/gio/tests MALLOC_CHECK_=2 /home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio/tests/gdbus-peer
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀ ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stderr:
**
GLib-GIO:ERROR:../gio/tests/gdbus-peer.c:2183:codegen_test_peer: assertion failed (error == NULL): GDBus.Error:org.freedesktop.DBus.Error.Failed: Unable to load /var/lib/dbus/machine-id or /etc/machine-id: Failed to open file */var/lib/dbus/machine-id*: No such file or directory (g-dbus-error-quark, 0)
(test program exited with status code -6)
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
245/337 glib:gio / gdbus-peer-object-manager OK 0.02s 2 subtests passed
246/337 glib:gio / gdbus-sasl OK 0.02s 1 subtests passed
247/337 glib:gio+portal-support / portal-support-flatpak-none OK 0.01s 1 subtests passed
248/337 glib:gio+portal-support / portal-support-flatpak-full OK 0.01s 1 subtests passed
249/337 glib:gio+portal-support / portal-support-flatpak-network-only OK 0.01s 1 subtests passed
250/337 glib:glib+core / gwakeup-fallback OK 2.16s 2 subtests passed
251/337 glib:gio+portal-support / portal-support-flatpak-gsettings-only OK 0.01s 1 subtests passed
252/337 glib:gio / gdbus-server-auth SKIP 0.09s 0 subtests passed
253/337 glib:gio+portal-support / portal-support-none OK 0.01s 1 subtests passed
254/337 glib:gio+portal-support / portal-support-env-var OK 0.02s 1 subtests passed
▶ 255/337 /file/query-default-handler-file - GLib-GIO-FATAL-WARNING: Failed to execute child process “update-desktop-database” (No such file or directory) FAIL
▶ 255/337 ERROR
255/337 glib:gio / file ERROR 0.10s killed by signal 5 SIGTRAP
>>> GIO_MODULE_DIR='' LD_LIBRARY_PATH=/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio:/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gmodule:/home/ncopa/aports/main/glib/src/glib-2.80.0/output/glib:/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gobject G_DEBUG=gc-friendly G_TEST_BUILDDIR=/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio/tests GIO_LAUNCH_DESKTOP=/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio/gio-launch-desktop ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 MALLOC_PERTURB_=237 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 G_ENABLE_DIAGNOSTIC=1 G_TEST_SRCDIR=/home/ncopa/aports/main/glib/src/glib-2.80.0/gio/tests MALLOC_CHECK_=2 /home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio/tests/file
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀ ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stderr:
(test program exited with status code -5)
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
256/337 glib:gio+portal-support / portal-support-snap-classic OK 0.03s 3 subtests passed
257/337 glib:gio / resolver-parsing OK 0.03s 20 subtests passed
258/337 glib:gio / socket-address OK 0.03s 2 subtests passed
259/337 glib:gio / stream-rw_all OK 0.02s 3 subtests passed
260/337 glib:gio / live-g-file OK 0.11s 13 subtests passed
261/337 glib:gio / unix-mounts OK 0.02s 2 subtests passed
262/337 glib:gio / srvtarget OK 0.51s 1 subtests passed
263/337 glib:gio / g-file-info-filesystem-readonly SKIP 0.02s 0 subtests passed
264/337 glib:gio / trash SKIP 0.02s 0 subtests passed
▶ 265/337 /appinfo/launch - GLib-GIO:ERROR:../gio/gtestdbus.c:663:start_daemon: assertion failed (error == NULL): Failed to spawn child process “dbus-daemon” (No such file or directory) (g-exec-error-quark, 19) FAIL
▶ 265/337 ERROR
265/337 glib:gio / appinfo ERROR 0.02s killed by signal 6 SIGABRT
>>> GIO_MODULE_DIR='' LD_LIBRARY_PATH=/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio:/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gmodule:/home/ncopa/aports/main/glib/src/glib-2.80.0/output/glib:/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gobject G_DEBUG=gc-friendly G_TEST_BUILDDIR=/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio/tests MALLOC_PERTURB_=154 GIO_LAUNCH_DESKTOP=/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio/gio-launch-desktop ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 G_ENABLE_DIAGNOSTIC=1 G_TEST_SRCDIR=/home/ncopa/aports/main/glib/src/glib-2.80.0/gio/tests MALLOC_CHECK_=2 /home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio/tests/appinfo
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀ ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stderr:
**
GLib-GIO:ERROR:../gio/gtestdbus.c:663:start_daemon: assertion failed (error == NULL): Failed to spawn child process “dbus-daemon” (No such file or directory) (g-exec-error-quark, 19)
(test program exited with status code -6)
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
▶ 266/337 /desktop-app-info/delete - GLib-GIO-FATAL-WARNING: Failed to execute child process *update-desktop-database* (No such file or directory) FAIL
▶ 266/337 ERROR
266/337 glib:gio / desktop-app-info ERROR 0.02s killed by signal 5 SIGTRAP
>>> GIO_MODULE_DIR='' LD_LIBRARY_PATH=/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio:/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gmodule:/home/ncopa/aports/main/glib/src/glib-2.80.0/output/glib:/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gobject G_DEBUG=gc-friendly G_TEST_BUILDDIR=/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio/tests MALLOC_PERTURB_=222 GIO_LAUNCH_DESKTOP=/home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio/gio-launch-desktop ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 G_ENABLE_DIAGNOSTIC=1 G_TEST_SRCDIR=/home/ncopa/aports/main/glib/src/glib-2.80.0/gio/tests MALLOC_CHECK_=2 /home/ncopa/aports/main/glib/src/glib-2.80.0/output/gio/tests/desktop-app-info
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀ ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stderr:
(test program exited with status code -5)
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
267/337 glib:gio+portal-support / portal-support-snap OK 0.15s 7 subtests passed
...
337/337 glib:gobject+slow / properties-refcount3 OK 30.01s 1 subtests passed
Summary of Failures:
181/337 glib:gio / contenttype ERROR 0.01s killed by signal 6 SIGABRT
233/337 glib:gio / gdbus-address-get-session ERROR 0.02s killed by signal 6 SIGABRT
244/337 glib:gio / gdbus-peer ERROR 0.71s killed by signal 6 SIGABRT
255/337 glib:gio / file ERROR 0.10s killed by signal 5 SIGTRAP
265/337 glib:gio / appinfo ERROR 0.02s killed by signal 6 SIGABRT
266/337 glib:gio / desktop-app-info ERROR 0.02s killed by signal 5 SIGTRAP
Ok: 328
Expected Fail: 0
Fail: 6
Unexpected Pass: 0
Skipped: 3
Timeout: 0
Those tests fails due to missing dbus-daemon
, update-desktop-database
, shared-mime-info
which all needs glib to build.
/etc/machine-id
is also needed any may not be there when glib
is bootstrapped in a container environment.
It would be very nice if those tests could be automatically skipped, or skipped via a flag. The glib bootstrap is already painfully complicated and it would be very helpful to run tests to verify that glib actually works before continue building dbus
, shared-mime-info
and update-desktop-database
. It is non-trivial to get the bootstrap build right.