MCPcopy Create free account
hub / github.com/cpputest/cpputest / cpputest_malloc_set_out_of_memory

Function cpputest_malloc_set_out_of_memory

src/CppUTest/TestHarness_c.cpp:138–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136static TestMemoryAllocator* originalAllocator = NULLPTR;
137
138void cpputest_malloc_set_out_of_memory()
139{
140 if (originalAllocator == NULLPTR)
141 originalAllocator = getCurrentMallocAllocator();
142 setCurrentMallocAllocator(NullUnknownAllocator::defaultAllocator());
143}
144
145void cpputest_malloc_set_not_out_of_memory()
146{

Callers 3

countdownFunction · 0.85
TESTFunction · 0.85

Calls 2

Tested by

no test coverage detected