Loading...
--- libmalloc/libmalloc-521.120.7/tests/bounds_test.c
+++ libmalloc/libmalloc-792.80.2/tests/bounds_test.c
@@ -4,23 +4,27 @@
#include <stdlib.h>
#include <../src/internal.h>
-T_DECL(bounds_sanity, "Pointer Bounds Sanity Check")
+T_DECL(bounds_sanity, "Pointer Bounds Sanity Check",
+ T_META_TAG_ALL_ALLOCATORS, T_META_TAG_VM_PREFERRED)
{
size_t size = rand() % 1024;
printf("Allocating %zu bytes...", size);
void *ptr = malloc(size);
T_EXPECT_NOTNULL(ptr, "allocation succeeded");
- T_EXPECT_LE(size, malloc_size(ptr), "requested size smaller or equal to actual size");
+ T_EXPECT_LE(size, malloc_size(ptr), "requested size smaller or equal to \
+ actual size");
size = rand() % 1024;
printf("Reallocating %zu bytes...", size);
ptr = realloc(ptr, size);
T_EXPECT_NOTNULL(ptr, "reallocation succeeded");
- T_EXPECT_LE(size, malloc_size(ptr), "requested size smaller or equal to actual size");
+ T_EXPECT_LE(size, malloc_size(ptr), "requested size smaller or equal to \
+ actual size");
free(ptr);
size = rand() % 1024;
printf("Zero allocating %zu bytes...", size);
ptr = calloc(1, size);
T_EXPECT_NOTNULL(ptr, "zero allocation succeeded");
- T_EXPECT_LE(size, malloc_size(ptr), "requested size smaller or equal to actual size");
+ T_EXPECT_LE(size, malloc_size(ptr), "requested size smaller or equal to \
+ actual size");
free(ptr);
}