27 (spec.NotIsBin == 0 ||
cells[
i].bin ==
NULL) &&
43 int missed = 0, alloc;
46 printf(
"omtTestErrors: Start\n");
53 memset(&spec, 0,
sizeof(
struct LongSpec));
67 bin->last_page =
NULL;
69 bin->last_page = last_page;
71 else printf(
"cell not found\n");
97 else printf(
"cell not found\n");
110 else printf(
"cell not found\n");
141 else printf(
"cell not found");
144 else printf(
"cell not found\n");
147 else printf(
"cell not found\n");
157 addr = *((
void**) addr);
168 addr = *((
void**) addr);
179 printf(
"addr not found\n");
195 else printf(
"cell not found\n");
212 page->region = region;
214 else printf(
"cell not found\n");
227 else printf(
"cell not found\n");
239 else printf(
"cell not found\n");
252 else printf(
"cell not found");
263 else printf(
"cell not found\n");
283 }
else printf(
"last == NULL\n");
295 }
else printf(
"om_SpecBin->next == NULL\n");
310 else printf(
"om_KeptAddr == NULL\n");
325 value = *((
void**) cell->addr);
326 *((
void**) cell->addr) = value -1;
328 *((
void**) cell->addr) = value;
332 else printf(
"cell not found\n");
334 else printf(
"om_Opts.Keep == 0");
346 void* value = *((
void**) addr);
347 *((
void**) addr) = value -1;
349 *((
void**) addr) = value;
351 else printf(
"cell not found\n");
361 void* addr = cell->addr - SIZEOF_VOIDP;
362 void* value = *((
void**) addr);
363 *((
void**) addr) = value -1;
365 *((
void**) addr) = value;
367 else printf(
"cell not found\n");
379 char* addr = (
char*) cell->addr;
387 else printf(
"cell not found\n");
401 printf(
"No Error test implemented\n");
426 printf(
"omtTest panik: memory corrupted\n\n");
431 printf(
"omtTestErrors: Summary: missed = %d\n\n", missed);
const CanonicalForm int s
#define omDebugBinAddrSize(addr, size)
#define omDebugAddr(addr)
#define omDebugBinAddr(addr)
#define omRealloc(addr, size)
#define omDebugAddrSize(addr, size)
#define omDebugAddrBin(addr, bin)
#define omGetTopBinOfAddr(addr)
size_t omSizeOfAddr(const void *addr)
#define omGetBinPageOfAddr(addr)
void * om_AlwaysKeptAddrs
void * omAddr_2_OutAddr(void *addr)
#define omIsTrackAddr(addr)
const char * omError2Serror(omError_t error)
omError_t om_InternalErrorStatus
@ omError_MemoryCorrupted
@ omError_FreedAddrOrMemoryCorrupted
@ omError_SortedListError
@ omError_KeptAddrListCorrupted
@ omError_InvalidRangeAddr
@ omError_FalseAddrOrMemoryCorrupted
#define omCheckSortedList(ptr, what, level, report, OM_FLR_VAL)
#define omCheckList(ptr, level, report, OM_FLR_VAL)
omBinPageRegion_t * omBinPageRegion
#define OM_MAX_BLOCK_SIZE
omMemCell omFindCell(struct LongSpec spec)
void TestAlloc(omMemCell cell, unsigned long spec)
omMemCell_t cells[MAX_CELLS]
void omtTestDebug(omMemCell cell)
void InitCellAddrContent(omMemCell cell)
#define omMergeStickyBinIntoBin(A, B)