summaryrefslogtreecommitdiffstats
path: root/test/unit/zero.c
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2017-02-22 07:40:06 (GMT)
committerJason Evans <jasone@canonware.com>2017-02-23 16:57:02 (GMT)
commitde49674fbde4d124a0a7e7e97f5656e190980759 (patch)
tree9a29c6d5f569ea6098cc85663b4cb0e7bba4dc3f /test/unit/zero.c
parent8ac7937eb5ce011945188ef3553dbc2bcc294a25 (diff)
downloadjemalloc-de49674fbde4d124a0a7e7e97f5656e190980759.zip
jemalloc-de49674fbde4d124a0a7e7e97f5656e190980759.tar.gz
jemalloc-de49674fbde4d124a0a7e7e97f5656e190980759.tar.bz2
Use MALLOC_CONF rather than malloc_conf for tests.
malloc_conf does not reliably work with MSVC, which complains of "inconsistent dll linkage", i.e. its inability to support the application overriding malloc_conf when dynamically linking/loading. Work around this limitation by adding test harness support for per test shell script sourcing, and converting all tests to use MALLOC_CONF instead of malloc_conf.
Diffstat (limited to 'test/unit/zero.c')
-rw-r--r--test/unit/zero.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/test/unit/zero.c b/test/unit/zero.c
index d5b03f8..553692b 100644
--- a/test/unit/zero.c
+++ b/test/unit/zero.c
@@ -1,10 +1,5 @@
#include "test/jemalloc_test.h"
-#ifdef JEMALLOC_FILL
-const char *malloc_conf =
- "abort:false,junk:false,zero:true";
-#endif
-
static void
test_zero(size_t sz_min, size_t sz_max) {
uint8_t *s;