martinpitt / umockdev

Mock hardware devices for creating unit tests and bug reporting
https://launchpad.net/umockdev
GNU Lesser General Public License v2.1
308 stars 55 forks source link

packit: Test and fix on emulated COPR architectures #157

Closed martinpitt closed 2 years ago

martinpitt commented 2 years ago

s390

failure log:

Bail out! ERROR:test-umockdev-vala.p/tests/test-umockdev-vala.c:2345:t_hidraw_ioctl: assertion failed (i == 34): (570425344 == 34)
stderr:
**
ERROR:test-umockdev-vala.p/tests/test-umockdev-vala.c:2345:t_hidraw_ioctl: assertion failed (i == 34): (570425344 == 34)

This is a bug in s390x QEMU emulation -- 570425344 is 0x22000000, i.e. the big-endian variant of 34 == 0x22. This works fine on real s390x hardware, as in the Debian buildds.

martinpitt commented 2 years ago

armhfp

failure log:

# GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
Bail out! ERROR:test-umockdev-vala.p/tests/test-umockdev-vala.c:2596:t_detects_not_running_in_testbed: assertion failed ((gint) read (_tmp7_, &buf, (gsize) 1) == 1): (0 == 1)
stderr:
**
ERROR:test-umockdev-vala.p/tests/test-umockdev-vala.c:2596:t_detects_not_running_in_testbed: assertion failed ((gint) read (_tmp7_, &buf, (gsize) 1) == 1): (0 == 1)
qemu: uncaught target signal 6 (Aborted) - core dumped
**
ERROR:test-umockdev-run.p/tests/test-umockdev-run.c:548:t_run_exit_code: assertion failed (_tmp9_ == ""): ("qemu: uncaught target signal 11 (Segmentation fault) - core dumped\nqemu: uncaught target signal 11 (Segmentation fault) - core dumped\n" == "")
qemu: uncaught target signal 6 (Aborted) - core dumped