/* iso_alloc memset_sanity.c * Copyright 2023 - chris.rohlf@gmail.com */ #include "iso_alloc.h" #include "iso_alloc_internal.h" #if !MEMSET_SANITY #error "This test intended to be run with -DMEMSET_SANITY=1" #endif #if !(__FreeBSD__ || __NetBSD__ || __OpenBSD__ || __DragonFly__) #error "This test intended for BSD systems" #endif int main(int argc, char *argv[]) { uint8_t *p = NULL; for(int32_t i = 0; i < 1024; i++) { p = (uint8_t *) iso_alloc(32); iso_free(p); } bzero(p, 65535); iso_free(p); iso_verify_zones(); return OK; }