[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/55452: ATF should not call clean-up routines for skipped tests
>Synopsis: ATF should not call clean-up routines for skipped tests
>Arrival-Date: Fri Jul 03 15:35:00 +0000 2020
>Release: NetBSD 9.99.68
System: NetBSD kafka 9.99.68 NetBSD 9.99.68 (CUSTOM) #0: Tue Jun 23 11:22:56 EEST 2020 jruoho@kafka:/tmp/obj/sys/arch/amd64/compile/CUSTOM amd64
ATF calls the registered clean-up routines even when a test case has
explicitly been skipped in its body. Although there may be some use cases
that warrant this behavior, practically all of the NetBSD test cases that
use atf_tc_skip() or atf_skip() do it as the first thing in the test cases'
bodies. By implication, and at least in some cases (e.g., a heavy clean-up
routine; see tests/sbin/ifconfig/t_random_garbage) the same
skip-declarations need to be duplicated to the clean-up routines.
See, e.g., /tests/sbin/ifconfig/t_tap:
Do not call the clean-up routines in these special cases?
Main Index |
Thread Index |