X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Falloc%2Ftest%2Frun-corrupt.c;fp=ccan%2Falloc%2Ftest%2Frun-corrupt.c;h=0000000000000000000000000000000000000000;hp=3e7be17322a47f3fc3f9e846ac5ccf08952ae0b6;hb=d379e0ae835bdd047a5d277f7ded41f180134e27;hpb=8fc1b23065309df44a3725ec7dba76dfebc9cbd2 diff --git a/ccan/alloc/test/run-corrupt.c b/ccan/alloc/test/run-corrupt.c deleted file mode 100644 index 3e7be173..00000000 --- a/ccan/alloc/test/run-corrupt.c +++ /dev/null @@ -1,26 +0,0 @@ -/* Example allocation which caused corruption. */ -#include -#include -#include -#include -#include - -int main(int argc, char *argv[]) -{ - void *mem; - - plan_tests(7); - - mem = malloc(1179648); - alloc_init(mem, 1179648); - ok1(alloc_check(mem, 1179648)); - ok1(alloc_get(mem, 1179648, 48, 16)); - ok1(alloc_check(mem, 1179648)); - ok1(alloc_get(mem, 1179648, 53, 16)); - ok1(alloc_check(mem, 1179648)); - ok1(alloc_get(mem, 1179648, 53, 16)); - ok1(alloc_check(mem, 1179648)); - free(mem); - - return exit_status(); -}