Loading...
--- libmalloc/libmalloc-657.60.21/tests/bounds_test.c
+++ libmalloc/libmalloc-521.100.59/tests/bounds_test.c
@@ -4,27 +4,23 @@
#include <stdlib.h>
#include <../src/internal.h>
-T_DECL(bounds_sanity, "Pointer Bounds Sanity Check",
- T_META_TAG_VM_NOT_PREFERRED)
+T_DECL(bounds_sanity, "Pointer Bounds Sanity Check")
{
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);
}