| 262 | } |
| 263 | |
| 264 | static void _failingAllocIsNeverDone(FailableMemoryAllocator* failableMallocAllocator) |
| 265 | { |
| 266 | failableMallocAllocator->failAllocNumber(1); |
| 267 | failableMallocAllocator->failAllocNumber(2); |
| 268 | failableMallocAllocator->failAllocNumber(3); |
| 269 | malloc(sizeof(int)); |
| 270 | malloc(sizeof(int)); |
| 271 | failableMallocAllocator->checkAllFailedAllocsWereDone(); |
| 272 | } |
| 273 | |
| 274 | TEST(FailableMemoryAllocator, CheckAllFailingAllocsWereDone) |
| 275 | { |
nothing calls this directly
no test coverage detected