Commits on Source (3)
-
Alexandre Janniaux authored
std::unique_ptr use RAII to release the pointers, removing the requirement of `delete` in the catch{} block. They also help ensuring error caught are from the tested code and not the test itself.
5c8ad2c3 -
Alexandre Janniaux authored
Now that catch{} is mostly doing nothing, and doesn't require the segmentList pointers to be visible, we can align the whole function as a try-catch function block, removing a useless indentation. No functional changes.
f3b27b08 -
Alexandre Janniaux authored
This ensure that memory leaks are not coming from the test, but from the tested code instead. Refs #26728
ff0e681f