You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2019/04/02 19:09:24 UTC
[qpid-dispatch] branch master updated: NO-JIRA: enable glibc heap
checks in ctest
This is an automated email from the ASF dual-hosted git repository.
kgiusti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git
The following commit(s) were added to refs/heads/master by this push:
new 2c81460 NO-JIRA: enable glibc heap checks in ctest
2c81460 is described below
commit 2c8146000130c234383a3d5a1994cc8c2673b5ad
Author: Kenneth Giusti <kg...@apache.org>
AuthorDate: Tue Apr 2 15:09:13 2019 -0400
NO-JIRA: enable glibc heap checks in ctest
---
run.py.in | 4 +++-
tests/policy_test.c | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/run.py.in b/run.py.in
index 5ffd388..bda8e13 100755
--- a/run.py.in
+++ b/run.py.in
@@ -81,7 +81,9 @@ env_vars = {
'BUILD_DIR': "${CMAKE_BINARY_DIR}",
'QPID_DISPATCH_HOME': "${CMAKE_SOURCE_DIR}",
'QPID_DISPATCH_LIB': "${CMAKE_BINARY_DIR}/src/${QPID_DISPATCH_LIB}",
- 'QPID_DISPATCH_RUNNER': qdrouterd_runner
+ 'QPID_DISPATCH_RUNNER': qdrouterd_runner,
+ 'MALLOC_CHECK_': "3", # 3 = print error and abort
+ 'MALLOC_PERTURB_': "153" # 153 = 0x99 freed memory pattern
}
os.environ.update(env_vars)
diff --git a/tests/policy_test.c b/tests/policy_test.c
index 23b26c8..afc68c8 100644
--- a/tests/policy_test.c
+++ b/tests/policy_test.c
@@ -57,7 +57,7 @@ static char *test_link_name_lookup(void *context)
// Deeeper match - triggers malloc/free internal handler
#define BIG_N 512
- char * bufp = (char *)malloc(BIG_N * 8 + 6);
+ char * bufp = (char *)malloc(BIG_N * 8 + 6 + 1);
if (!bufp)
return "failed to allocate buffer for large link name test";
char * wp = bufp;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org