diff options
author | Jason Evans <jasone@canonware.com> | 2017-02-22 07:40:06 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2017-02-23 18:06:15 (GMT) |
commit | e85e588e45fd3bac1ddc3778e6f8bfe3f668f634 (patch) | |
tree | aec8539e6baabd79cbfd6ce95aa2e5b3c1f144e4 /test/unit/prof_reset.sh | |
parent | 3ecc3c84862ef3e66b20be8213b0301c06c692cc (diff) | |
download | jemalloc-e85e588e45fd3bac1ddc3778e6f8bfe3f668f634.zip jemalloc-e85e588e45fd3bac1ddc3778e6f8bfe3f668f634.tar.gz jemalloc-e85e588e45fd3bac1ddc3778e6f8bfe3f668f634.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/prof_reset.sh')
-rw-r--r-- | test/unit/prof_reset.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/prof_reset.sh b/test/unit/prof_reset.sh new file mode 100644 index 0000000..43c516a --- /dev/null +++ b/test/unit/prof_reset.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ "x${enable_prof}" = "x1" ] ; then + export MALLOC_CONF="prof:true,prof_active:false,lg_prof_sample:0" +fi |