 |
My Project
debian-1:4.1.1-p2+ds-4build3
|
#include "omtTest.h"
#include "omalloc.h"
Go to the source code of this file.
◆ LongSpec
Definition at line 5 of file omtTestError.c.
Data Fields |
int |
MaxSize |
|
int |
MinSize |
|
int |
MinTrack |
|
int |
NotIsBin |
|
int |
NoTrack |
|
int |
NotZero |
|
◆ OM_CHECK
◆ omFindCell()
◆ omtTestErrors()
Definition at line 36 of file omtTestError.c.
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");
282 }
else printf(
"last == NULL\n");
294 }
else printf(
"om_SpecBin->next == NULL\n");
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);
void * om_AlwaysKeptAddrs
void error(const char *fmt,...)
@ omError_SortedListError
size_t omSizeOfAddr(const void *addr)
omMemCell_t cells[MAX_CELLS]
#define omDebugBinAddrSize(addr, size)
#define omIsTrackAddr(addr)
void InitCellAddrContent(omMemCell cell)
@ omError_InvalidRangeAddr
#define omRealloc(addr, size)
omError_t om_InternalErrorStatus
const char * omError2Serror(omError_t error)
#define OM_MAX_BLOCK_SIZE
#define omDebugBinAddr(addr)
void omtTestDebug(omMemCell cell)
@ omError_FalseAddrOrMemoryCorrupted
#define omGetBinPageOfAddr(addr)
@ omError_KeptAddrListCorrupted
#define omCheckList(ptr, level, report, OM_FLR_VAL)
@ omError_FreedAddrOrMemoryCorrupted
#define omDebugAddrSize(addr, size)
omMemCell omFindCell(struct LongSpec spec)
#define omCheckSortedList(ptr, what, level, report, OM_FLR_VAL)
void omMergeStickyBinIntoBin(omBin sticky_bin, omBin into_bin)
omBinPageRegion_t * omBinPageRegion
#define omGetTopBinOfAddr(addr)
void * omAddr_2_OutAddr(void *addr)
const CanonicalForm int s
@ omError_MemoryCorrupted
#define omDebugAddr(addr)
#define omDebugAddrBin(addr, bin)
void TestAlloc(omMemCell cell, unsigned long spec)