Skip to content
Snippets Groups Projects
  • Arseny Kapoulkine's avatar
    f04b56e1
    Permit custom allocation function to throw · f04b56e1
    Arseny Kapoulkine authored
    Ensure that all the necessary cleanup is performed in case the allocation fails
    with an exception - files are closed, buffers are reclaimed, etc.
    
    Any test that triggers a simulated out-of-memory condition is ran once again
    with a throwing allocation function. Unobserved std::bad_alloc count as test
    failures and require CHECK_ALLOC_FAIL macro.
    
    Fixes #17.
    f04b56e1
    History
    Permit custom allocation function to throw
    Arseny Kapoulkine authored
    Ensure that all the necessary cleanup is performed in case the allocation fails
    with an exception - files are closed, buffers are reclaimed, etc.
    
    Any test that triggers a simulated out-of-memory condition is ran once again
    with a throwing allocation function. Unobserved std::bad_alloc count as test
    failures and require CHECK_ALLOC_FAIL macro.
    
    Fixes #17.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.