server-skynet-source-3rd-je.../test/integration/malloc.c
2018-10-17 08:50:58 -07:00

17 lines
244 B
C

#include "test/jemalloc_test.h"
TEST_BEGIN(test_zero_alloc) {
void *res = malloc(0);
assert(res);
size_t usable = malloc_usable_size(res);
assert(usable > 0);
free(res);
}
TEST_END
int
main(void) {
return test(
test_zero_alloc);
}