test-mempool-alloconly.c revision 5f5870385cff47efd2f58e7892f251cf13761528
/* Copyright (c) 2007-2012 Dovecot authors, see the included COPYING file */
#include "test-lib.h"
{
unsigned int i;
for (i = 0; i < size; i++) {
if (bytes[i] != b)
return FALSE;
}
return TRUE;
}
void test_mempool_alloconly(void)
{
#define PMALLOC_MAX_COUNT 128
unsigned int i, j, k;
for (i = 0; i < 64; i++) {
for (j = 1; j <= 128; j++) {
for (k = 1; k <= PMALLOC_MAX_COUNT; k++) {
}
if (!mem_has_bytes(mem[0], j, j))
for (k = 1; k <= PMALLOC_MAX_COUNT; k++) {
if (!mem_has_bytes(mem[k], k, k))
}
pool_unref(&pool);
}
}
}