]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pf tests: Use the ATF cleanup infrastructure in the ioctl tests
authorKristof Provost <kp@FreeBSD.org>
Tue, 11 Dec 2018 21:49:13 +0000 (21:49 +0000)
committerKristof Provost <kp@FreeBSD.org>
Tue, 11 Dec 2018 21:49:13 +0000 (21:49 +0000)
commitd3cc40300eaa672ce8f7d1782454267d3ea15dfb
treea0bc2aec87a32fae0dda376166345fa1315e29ea
parent87c7063c2b4d8cc600a6c4871c7d9db4ecb261dc
pf tests: Use the ATF cleanup infrastructure in the ioctl tests

Use ATF_TC_CLEANUP(), because that means the cleanup code will get
called even if a test fails. Before it would only be executed if every
test within the body succeeded.

Reported by: Marie Helene Kvello-Aune <marieheleneka@gmail.com>
MFC after: 2 weeks
tests/sys/netpfil/pf/ioctl/validation.c