char* CrashOnAllocationAllocator::alloc_memory(size_t size, const char* file, int line) { if (MemoryLeakWarningPlugin::getGlobalDetector()->getCurrentAllocationNumber() == allocationToCrashOn_) UT_CRASH(); return TestMemoryAllocator::alloc_memory(size, file, line); }
virtual void exitCurrentTest() const { if (crashOnFailure_) UT_CRASH(); NormalTestTerminator::exitCurrentTest(); } // LCOV_EXCL_LINE