mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 13:41:20 +02:00
31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
diff --git a/Makefile-test.am b/Makefile-test.am
|
|
index d7347148..ab2d1425 100644
|
|
--- a/Makefile-test.am
|
|
+++ b/Makefile-test.am
|
|
@@ -475,7 +475,7 @@ test_unit_tctildr_dl_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) \
|
|
-UESYS_TCTI_DEFAULT_MODULE -UESYS_TCTI_DEFAUT_CONFIG
|
|
test_unit_tctildr_dl_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD) $(LIBADD_DL)
|
|
test_unit_tctildr_dl_LDFLAGS = -Wl,--wrap=dlopen,--wrap=dlclose,--wrap=dlsym \
|
|
- -Wl,--wrap=tcti_from_init,--wrap=tcti_from_info
|
|
+ -Wl,--wrap=tcti_from_init,--wrap=tcti_from_info,--wrap=__dlsym_time64
|
|
test_unit_tctildr_dl_SOURCES = test/unit/tctildr-dl.c \
|
|
src/tss2-tcti/tctildr-dl.c
|
|
|
|
diff --git a/test/unit/tctildr-dl.c b/test/unit/tctildr-dl.c
|
|
index 873a4531..4279baee 100644
|
|
--- a/test/unit/tctildr-dl.c
|
|
+++ b/test/unit/tctildr-dl.c
|
|
@@ -55,6 +55,12 @@ __wrap_dlsym(void *handle, const char *symbol)
|
|
return mock_type(void *);
|
|
}
|
|
|
|
+void *
|
|
+__wrap___dlsym_time64(void *handle, const char *symbol)
|
|
+{
|
|
+ return __wrap_dlsym(handle, symbol);
|
|
+}
|
|
+
|
|
TSS2_TCTI_INFO *
|
|
__wrap_Tss2_Tcti_Fake_Info(void)
|
|
{
|