Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sergei Trofimovich
BIND
Commits
44381929
Commit
44381929
authored
Jul 25, 2019
by
Ondřej Surý
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We need to wrap isc__mem_putanddetach in tkey_test.c unit too now
parent
a6dcdc53
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
lib/dns/tests/Makefile.in
lib/dns/tests/Makefile.in
+6
-1
lib/dns/tests/tkey_test.c
lib/dns/tests/tkey_test.c
+17
-0
No files found.
lib/dns/tests/Makefile.in
View file @
44381929
...
...
@@ -234,7 +234,12 @@ time_test@EXEEXT@: time_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
${LDFLAGS}
-o
$@
time_test.@O@ dnstest.@O@
\
${DNSLIBS}
${ISCLIBS}
${LIBS}
WRAP_OPTIONS
=
-Wl
,--wrap
=
isc__mem_put,--wrap
=
isc__mem_get,--wrap
=
isc_mem_attach,--wrap
=
isc_mem_detach
tkey_test@EXEEXT@
:
WRAP_OPTIONS =
\
-Wl
,
--wrap=isc__mem_put
\
-Wl
,
--wrap=isc__mem_get
\
-Wl
,
--wrap=isc_mem_attach
\
-Wl
,
--wrap=isc_mem_detach
\
-Wl
,
--wrap=isc__mem_putanddetach
tkey_test@EXEEXT@
:
tkey_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
if
test
"
${LD_WRAP_TESTS}
"
=
true
;
then
WRAP
=
"
${WRAP_OPTIONS}
"
;
fi
;
\
${LIBTOOL_MODE_LINK}
${PURIFY}
${CC}
${CFLAGS}
\
...
...
lib/dns/tests/tkey_test.c
View file @
44381929
...
...
@@ -42,6 +42,8 @@ void
__wrap_isc_mem_attach
(
isc_mem_t
*
source0
,
isc_mem_t
**
targetp
);
void
__wrap_isc_mem_detach
(
isc_mem_t
**
ctxp
);
void
__wrap_isc__mem_putanddetach
(
isc_mem_t
**
ctxp
,
void
*
ptr
,
size_t
size
);
void
*
__wrap_isc__mem_get
(
isc_mem_t
*
mctx
,
size_t
size
)
...
...
@@ -74,6 +76,14 @@ __wrap_isc_mem_detach(isc_mem_t **ctxp) {
*
ctxp
=
NULL
;
}
void
__wrap_isc__mem_putanddetach
(
isc_mem_t
**
ctxp
,
void
*
ptr
,
size_t
size
)
{
isc_mem_t
*
ctx
=
*
ctxp
;
__wrap_isc__mem_put
(
ctx
,
ptr
,
size
);
__wrap_isc_mem_detach
(
ctxp
);
}
#if ISC_MEM_TRACKLINES
#define FLARG , const char *file, unsigned int line
#else
...
...
@@ -106,6 +116,13 @@ isc_mem_detach(isc_mem_t **ctxp) {
__wrap_isc_mem_detach
(
ctxp
);
}
__attribute__
((
weak
))
void
isc__mem_putanddetach
(
isc_mem_t
**
ctxp
,
void
*
ptr
,
size_t
size
FLARG
){
UNUSED
(
file
);
UNUSED
(
line
);
__wrap_isc__mem_putanddetach
(
ctxp
,
ptr
,
size
);
}
static
int
_setup
(
void
**
state
)
{
dns_tkeyctx_t
*
tctx
=
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment