MCPcopy Create free account
hub / github.com/Singular/Singular / TestAlloc

Function TestAlloc

omalloc/omtTest.c:182–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180
181
182void TestAlloc(omMemCell cell, unsigned long spec)
183{
184 if (DO_CHECK(spec))
185 {
186 if (DO_TRACK(spec))
187 om_Opts.MinTrack = GET_TRACK(spec);
188 else
189 om_Opts.MinTrack = 0;
190
191 if (DO_KEEP(spec))
192 omtTestAllocKeep(cell, spec);
193 else
194 omtTestAllocDebug(cell, spec);
195 }
196 else
197 omtTestAlloc(cell, spec);
198 if (om_ErrorStatus != omError_NoError)
199 {
200 errors++;
201 om_ErrorStatus = omError_NoError;
202 }
203}
204
205void TestRealloc(omMemCell cell, unsigned long spec)
206{

Callers 2

omtTestErrorsFunction · 0.85
mainFunction · 0.85

Calls 1

omtTestAllocFunction · 0.85

Tested by

no test coverage detected