]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r285117
authorasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 18 Apr 2017 16:17:38 +0000 (16:17 +0000)
committerasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 18 Apr 2017 16:17:38 +0000 (16:17 +0000)
commita1180534c625db7b77464c4f999c398e0bac4fc8
tree597a5d5c36a53b7db861eeb59b36a8a2e7390345
parentd3ea97bd8cc2786141526e1a1fb1857837ddca7e
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

git-svn-id: svn://svn.freebsd.org/base/stable/10@317093 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
tests/sys/netinet/fibs_test.sh