e85e588e45
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.
20 lines
246 B
C
20 lines
246 B
C
#include "test/jemalloc_test.h"
|
|
|
|
TEST_BEGIN(test_lg_chunk_clamp)
|
|
{
|
|
void *p;
|
|
|
|
p = mallocx(1, 0);
|
|
assert_ptr_not_null(p, "Unexpected mallocx() failure");
|
|
dallocx(p, 0);
|
|
}
|
|
TEST_END
|
|
|
|
int
|
|
main(void)
|
|
{
|
|
|
|
return (test(
|
|
test_lg_chunk_clamp));
|
|
}
|