Dedicated process tests fails on s390x arch
I'm not sure if it's related to #76 since I really don't understand what's going on.
On Debian/Sid the tests_workaround_dedicated_process fails on s390x architecture. I tried to create a vm with this architecture without any success so I realize it's gonna be a tricky issue. The full build log is available here The tests part (end of build log):
[1/2] /usr/bin/meson test --no-rebuild --print-errorlogs
1/22 tests_sane OK 4.38s
2/22 tests_multiplexer OK 0.01s
3/22 tests_normalizer_all_opts_on_all_sources OK 0.00s
4/22 tests_normalizer_bmp2raw OK 0.00s
5/22 tests_normalizer_clean_dev_descs OK 0.00s
6/22 tests_normalizer_min_one_source OK 0.00s
7/22 tests_normalizer_opt_aliases OK 0.00s
8/22 tests_normalizer_raw24 OK 0.00s
9/22 tests_normalizer_resolution OK 0.00s
10/22 tests_normalizer_safe_defaults OK 0.00s
11/22 tests_normalizer_source_names OK 0.00s
12/22 tests_normalizer_source_nodes OK 0.00s
13/22 tests_normalizer_source_types OK 0.00s
14/22 tests_workaround_cache OK 0.00s
15/22 tests_workaround_check_capabilities OK 0.00s
16/22 tests_workaround_dedicated_thread OK 0.00s
17/22 tests_workaround_lamp OK 0.00s
18/22 tests_workaround_one_page_flatbed OK 0.00s
19/22 tests_workaround_opt_names OK 0.00s
20/22 tests_workaround_opt_values OK 0.00s
21/22 tests_workaround_dedicated_process FAIL 0.00s (exit status 1)
22/22 tests_workaround_dedicated_process_pack OK 0.00s
Ok: 21
Expected Fail: 0
Fail: 1
Unexpected Pass: 0
Skipped: 0
Timeout: 0
The output from the failed tests:
21/22 tests_workaround_dedicated_process FAIL 0.00s (exit status 1)
--- command ---
18:04:43 /<<PKGBUILDDIR>>/debian/build/subprojects/libinsane/tests/tests_workaround_dedicated_process
--- stdout ---
CUnit - A unit testing framework for C - Version 2.1-3
http://cunit.sourceforge.net/
Suite: Workaround dedicated process
Test: tests_dedicated_process_scan() ...[LibInsane:ERROR] ../../subprojects/libinsane/src/workarounds/dedicated_process/master.c:L322(remote_call): session_scan_read() failed: 0x40000007, Out of memory
FAILED
1. ../../subprojects/libinsane/tests/tests_workaround_dedicated_process.c:274 - CU_ASSERT_TRUE(_r = ((err) == (LIS_OK)))
Test: tests_dedicated_process_opts() ...[LibInsane:ERROR] ../../subprojects/libinsane/src/workarounds/dedicated_process/worker.c:L639(execute_session_scan_read): Out of memory
[LibInsane:ERROR] ../../subprojects/libinsane/src/workarounds/dedicated_process/protocol.c:L26(lis_read): read() failed: fd=11, r=-1, got=160, expected=0; 9, Bad file descriptor
passed
Run Summary: Type Total Ran Passed Failed Inactive
suites 1 1 n/a 0 0
tests 2 2 1 1 0
asserts 59 59 58 1 n/a
Elapsed time = 0.000 seconds