3.37.92: test suite on x11 backend fails
Rebasing to 3.37.92 I found that test suite is failing an new version needs display.
+ /usr/bin/meson test -C x86_64-redhat-linux-gnu --num-processes 48 --print-errorlogs
ninja: Entering directory `/home/tkloczko/rpmbuild/BUILD/gnome-calculator-3.37.92/x86_64-redhat-linux-gnu'
ninja: no work to do.
1/6 Equation test OK 0.24s
2/6 Number test OK 0.14s
3/6 Serializer test OK 0.04s
4/6 gci-entry-controller FAIL 0.64s (killed by signal 5 SIGTRAP)
5/6 gcalc-parsing OK 0.06s
6/6 gcalc-solve-basic OK 0.09s
Ok: 5
Expected Fail: 0
Fail: 1
Unexpected Pass: 0
Skipped: 0
Timeout: 0
The output from the failed tests:
4/6 gci-entry-controller FAIL 0.64s (killed by signal 5 SIGTRAP)
--- command ---
20:56:40 /home/tkloczko/rpmbuild/BUILD/gnome-calculator-3.37.92/x86_64-redhat-linux-gnu/tests/test-entry-controller
--- stdout ---
# random seed: R02S10fb474d2d5375908f8edba27d7f662f
1..1
# Start of gci tests
# Start of entry tests
# GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
# GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
Bail out! FATAL-WARNING: AT-SPI: Could not obtain desktop path or name
--- stderr ---
** (/home/tkloczko/rpmbuild/BUILD/gnome-calculator-3.37.92/x86_64-redhat-linux-gnu/tests/test-entry-controller:3377761): WARNING **: 21:56:41.081: AT-SPI: Could not obtain desktop path or name
So I've added execute ninja over xvfb but it seill ghas been failing:
+ xvfb-run -a /usr/bin/meson test -C x86_64-redhat-linux-gnu --num-processes 48 --print-errorlogs
ninja: Entering directory `/home/tkloczko/rpmbuild/BUILD/gnome-calculator-3.37.92/x86_64-redhat-linux-gnu'
ninja: no work to do.
1/6 Equation test OK 0.24s
2/6 Number test OK 0.14s
3/6 Serializer test OK 0.04s
4/6 gci-entry-controller FAIL 0.64s (killed by signal 5 SIGTRAP)
5/6 gcalc-parsing OK 0.06s
6/6 gcalc-solve-basic OK 0.09s
Ok: 5
Expected Fail: 0
Fail: 1
Unexpected Pass: 0
Skipped: 0
Timeout: 0
The output from the failed tests:
4/6 gci-entry-controller FAIL 0.64s (killed by signal 5 SIGTRAP)
--- command ---
20:56:40 /home/tkloczko/rpmbuild/BUILD/gnome-calculator-3.37.92/x86_64-redhat-linux-gnu/tests/test-entry-controller
--- stdout ---
# random seed: R02S10fb474d2d5375908f8edba27d7f662f
1..1
# Start of gci tests
# Start of entry tests
# GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
# GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
Bail out! FATAL-WARNING: AT-SPI: Could not obtain desktop path or name
--- stderr ---
** (/home/tkloczko/rpmbuild/BUILD/gnome-calculator-3.37.92/x86_64-redhat-linux-gnu/tests/test-entry-controller:3377761): WARNING **: 21:56:41.081: AT-SPI: Could not obtain desktop path or name
I found in https://gitlab.gnome.org/GNOME/gnome-calculator/-/blob/master/.gitlab-ci.yml that it is used other methos and when I've altered my rpm package %check
to:
%check
broadwayd &
GDK_BACKEND=broadway \
%meson_test
Everything finishes with sucess
+ cd gnome-calculator-3.37.92
+ GDK_BACKEND=broadway
+ /usr/bin/meson test -C x86_64-redhat-linux-gnu --num-processes 48 --print-errorlogs
+ broadwayd
Listening on /run/user/1000/broadway1.socket
ninja: Entering directory `/home/tkloczko/rpmbuild/BUILD/gnome-calculator-3.37.92/x86_64-redhat-linux-gnu'
ninja: no work to do.
1/6 Equation test OK 0.24s
2/6 Number test OK 0.14s
3/6 Serializer test OK 0.06s
4/6 gci-entry-controller OK 10.13s
5/6 gcalc-parsing OK 0.06s
6/6 gcalc-solve-basic OK 0.05s
Ok: 6
Expected Fail: 0
Fail: 0
Unexpected Pass: 0
Skipped: 0
Timeout: 0
So I've been trying to use similar method to test on x11 but it fails:
+ GDK_BACKEND=x11
+ xvfb-run -a /usr/bin/meson test -C x86_64-redhat-linux-gnu --num-processes 48 --print-errorlogs
ninja: Entering directory `/home/tkloczko/rpmbuild/BUILD/gnome-calculator-3.37.92/x86_64-redhat-linux-gnu'
ninja: no work to do.
1/6 Equation test OK 0.30s
2/6 Number test OK 0.14s
3/6 Serializer test OK 0.06s
4/6 gci-entry-controller FAIL 0.59s (killed by signal 5 SIGTRAP)
5/6 gcalc-parsing OK 0.06s
6/6 gcalc-solve-basic OK 0.06s
Ok: 5
Expected Fail: 0
Fail: 1
Unexpected Pass: 0
Skipped: 0
Timeout: 0
The output from the failed tests:
4/6 gci-entry-controller FAIL 0.59s (killed by signal 5 SIGTRAP)
--- command ---
21:13:23 /home/tkloczko/rpmbuild/BUILD/gnome-calculator-3.37.92/x86_64-redhat-linux-gnu/tests/test-entry-controller
--- stdout ---
# random seed: R02S02d543fa3b4255ce411ff23a43931584
1..1
# Start of gci tests
# Start of entry tests
# GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
# GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
Bail out! FATAL-WARNING: AT-SPI: Could not obtain desktop path or name
--- stderr ---
** (/home/tkloczko/rpmbuild/BUILD/gnome-calculator-3.37.92/x86_64-redhat-linux-gnu/tests/test-entry-controller:3397739): WARNING **: 22:13:24.526: AT-SPI: Could not obtain desktop path or name
Q: How should be done testing on wayland and x11 backends?