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