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);
}
Exemple #2
0
    virtual void exitCurrentTest() const
    {
        if (crashOnFailure_)
            UT_CRASH();

        NormalTestTerminator::exitCurrentTest();
    } // LCOV_EXCL_LINE