HomeFreeBSD

Make cleanup routines idempotent

Description

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
jmmvAuthored on
Parents
rS285116: Update LLDB snapshot to upstream r241361
Branches
Unknown
Tags
Unknown