Skip to content

adaptive: test: use std::unique_ptr and fix leak in case of error

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.

However, this currently doesn't fix the underlying error.

Refs #26728 (closed)

Edited by Alexandre Janniaux

Merge request reports

Loading