freebsd-src/tests/sys
Alan Somers ddc5034c27 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
2017-04-18 16:17:38 +00:00
..
acl
aio
fifo
file
fs MFC r314450,r313439: 2017-03-07 01:52:50 +00:00
geom MFC r311893, r313008, r313081 2017-02-15 00:16:52 +00:00
kern MFC r315412, r314852: 2017-03-25 20:14:08 +00:00
kqueue MFC r305468: 2017-02-10 02:29:39 +00:00
mac MFC r312164: 2017-02-04 16:31:24 +00:00
mqueue MFC r289172,r290254: 2017-02-09 22:49:48 +00:00
netinet MFC r285117 2017-04-18 16:17:38 +00:00
pjdfstest MFC r295643: 2017-02-16 05:17:40 +00:00
posixshm
vfs
vm MFC r312110: 2017-02-04 16:16:41 +00:00
Makefile MFC r295643: 2017-02-16 05:17:40 +00:00
Makefile.inc MFC r312114,r312194: 2017-02-04 16:29:23 +00:00