HomeFreeBSD

MFC r285117

Description

MFC r285117

Make cleanup routines idempotent

cleanup routines can be executed at any point during the execution of the
body, including even before the body has done any real work. In those
cases, cleanup routines should be careful to not raise spurious errors so
as to not "override" the actual result of the test case.

This is just general good coding style but is not a problem in practice
for these specific tests. (The way I discovered the issue, though, was
due to a regression I introduced in Kyua itself while refactoring some
internals.)

MFC after: 1 week

Details

Provenance
asomersAuthored on
Parents
rS317092: loader: zfs reader vdev_probe should check for minimum device size
Branches
Unknown
Tags
Unknown