24 (spec.MinSize == 0 ||
GET_SIZE(
cells[i].spec) >= spec.MinSize) &&
25 (spec.MaxSize == 0 ||
GET_SIZE(
cells[i].spec) <= spec.MaxSize) &&
26 (spec.NotIsBin == 0 ||
cells[i].bin ==
NULL) &&
42 int missed = 0, alloc;
45 printf(
"omtTestErrors: Start\n");
52 memset(&spec, 0,
sizeof(
struct LongSpec));
66 bin->last_page =
NULL;
68 bin->last_page = last_page;
70 else printf(
"cell not found\n");
96 else printf(
"cell not found\n");
109 else printf(
"cell not found\n");
140 else printf(
"cell not found");
143 else printf(
"cell not found\n");
146 else printf(
"cell not found\n");
156 addr = *((
void**) addr);
167 addr = *((
void**) addr);
178 printf(
"addr not found\n");
194 else printf(
"cell not found\n");
211 page->region = region;
213 else printf(
"cell not found\n");
226 else printf(
"cell not found\n");
238 else printf(
"cell not found\n");
251 else printf(
"cell not found");
262 else printf(
"cell not found\n");
281 *((
void**)last) =
NULL;
282 }
else printf(
"last == NULL\n");
294 }
else printf(
"om_SpecBin->next == NULL\n");
307 *((
void**)last) =
NULL;
309 else printf(
"om_KeptAddr == NULL\n");
324 value = *((
void**) cell->addr);
325 *((
void**) cell->addr) = value -1;
327 *((
void**) cell->addr) = value;
331 else printf(
"cell not found\n");
333 else printf(
"om_Opts.Keep == 0");
345 void* value = *((
void**) addr);
346 *((
void**) addr) = value -1;
348 *((
void**) addr) = value;
350 else printf(
"cell not found\n");
360 void* addr = cell->addr - SIZEOF_VOIDP;
361 void* value = *((
void**) addr);
362 *((
void**) addr) = value -1;
364 *((
void**) addr) = value;
366 else printf(
"cell not found\n");
378 char* addr = (
char*) cell->addr;
386 else printf(
"cell not found\n");
400 printf(
"No Error test implemented\n");
425 printf(
"omtTest panik: memory corrupted\n\n");
430 printf(
"omtTestErrors: Summary: missed = %d\n\n", missed);
const CanonicalForm int s
void omMergeStickyBinIntoBin(omBin sticky_bin, omBin into_bin)
omMemCell omFindCell(struct LongSpec spec)
#define omGetTopBinOfAddr(addr)
size_t omSizeOfAddr(const void *addr)
void InitCellAddrContent(omMemCell cell)
omError_t om_InternalErrorStatus
#define omDebugAddrSize(addr, size)
#define omCheckList(ptr, level, report, OM_FLR_VAL)
#define omIsTrackAddr(addr)
#define omCheckSortedList(ptr, what, level, report, OM_FLR_VAL)
#define omDebugBinAddrSize(addr, size)
#define omDebugBinAddr(addr)
const char * omError2Serror(omError_t error)
omBinPageRegion_t * omBinPageRegion
#define omGetBinPageOfAddr(addr)
void omtTestDebug(omMemCell cell)
#define OM_MAX_BLOCK_SIZE
void * omAddr_2_OutAddr(void *addr)
void TestAlloc(omMemCell cell, unsigned long spec)
void * om_AlwaysKeptAddrs
#define omDebugAddr(addr)
#define omRealloc(addr, size)
#define omDebugAddrBin(addr, bin)
omMemCell_t cells[MAX_CELLS]