community/tpm2-tss: Fix failing test
With the musl upgarde, tpm2-tss can no longer be rebuild due to a failing test, or at least on 32 bit architectures. 64 bit architectures seem to be fine.
This can be seen for example here: https://gitlab.alpinelinux.org/oliver/aports/-/jobs/173706
======================================
tpm2-tss 2.4.1: ./test-suite.log
======================================
# TOTAL: 33
# PASS: 32
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: test/unit/tctildr-dl
==========================
[==========] Running 14 test(s).
[ RUN ] test_info_from_handle_null
[ OK ] test_info_from_handle_null
[ RUN ] test_info_from_handle_dlsym_fail
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:67:info_from_handle() Failed to get reference to TSS2_TCTI_INFO_SYMBOL: __wrap_dlerror
[ ERROR ] --- %s() has remaining non-returned values.
test/unit/tctildr-dl.c:104: note: remaining item was declared here
__wrap_dlsym: '%s' parameter still has values that haven't been checked.
test/unit/tctildr-dl.c:102: note: remaining item was declared here
'%s' parameter still has values that haven't been checked.
test/unit/tctildr-dl.c:103: note: remaining item was declared here
[ FAILED ] test_info_from_handle_dlsym_fail
[ RUN ] test_info_from_handle_success
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:67:info_from_handle() Failed to get reference to TSS2_TCTI_INFO_SYMBOL: __wrap_dlerror
[ ERROR ] --- 0 != 0xfefd9988
[ LINE ] --- test/unit/tctildr-dl.c:122: error: Failure!
[ FAILED ] test_info_from_handle_success
[ RUN ] test_handle_from_name_null_handle
[ OK ] test_handle_from_name_null_handle
[ RUN ] test_handle_from_name_first_dlopen_success
[ OK ] test_handle_from_name_first_dlopen_success
[ RUN ] test_handle_from_name_second_dlopen_success
[ OK ] test_handle_from_name_second_dlopen_success
[ RUN ] test_handle_from_name_third_dlopen_success
[ OK ] test_handle_from_name_third_dlopen_success
[ RUN ] test_fail_null
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:218:tctildr_get_default() tcticontext must not be NULL
[ OK ] test_fail_null
[ RUN ] test_tcti_from_file_null_tcti
[ OK ] test_tcti_from_file_null_tcti
[ RUN ] test_info_from_name_null
[ OK ] test_info_from_name_null
[ RUN ] test_info_from_name_handle_fail
[ OK ] test_info_from_name_handle_fail
[ RUN ] test_info_from_name_info_fail
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:67:info_from_handle() Failed to get reference to TSS2_TCTI_INFO_SYMBOL: __wrap_dlerror
[ ERROR ] --- %s() has remaining non-returned values.
test/unit/tctildr-dl.c:504: note: remaining item was declared here
%s() has remaining non-returned values.
test/unit/tctildr-dl.c:506: note: remaining item was declared here
__wrap_dlsym: '%s' parameter still has values that haven't been checked.
test/unit/tctildr-dl.c:502: note: remaining item was declared here
'%s' parameter still has values that haven't been checked.
test/unit/tctildr-dl.c:503: note: remaining item was declared here
[ FAILED ] test_info_from_name_info_fail
[ RUN ] test_info_from_name_success
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:67:info_from_handle() Failed to get reference to TSS2_TCTI_INFO_SYMBOL: __wrap_dlerror
[ ERROR ] --- No entries for symbol __wrap_dlclose.
test/unit/tctildr-dl.c:51: error: Could not get value to check parameter handle of function __wrap_dlclose
test/unit/tctildr-dl.c:522: note: Previously declared parameter value was declared here
[ FAILED ] test_info_from_name_success
[ RUN ] test_finalize_data
[ OK ] test_finalize_data
[==========] 14 test(s) run.
[ PASSED ] 10 test(s).
[ FAILED ] 4 test(s), listed below:
[ FAILED ] test_info_from_handle_dlsym_fail
[ FAILED ] test_info_from_handle_success
[ FAILED ] test_info_from_name_info_fail
[ FAILED ] test_info_from_name_success
4 FAILED TEST(S)
FAIL test/unit/tctildr-dl (exit status: 4)
See !10606 (closed) for the MR disabeling the test