The ATF cleanup routine
Garrett Cooper
yanegomi at gmail.com
Sun Mar 2 11:33:02 UTC 2014
On Mar 1, 2014, at 4:03 PM, Alan Somers <asomers at freebsd.org> wrote:
> On Thu, Feb 27, 2014 at 5:49 AM, Peter Holm <peter at holm.cc> wrote:
>> It seems as thou the cleanup routine runs in a different process from
>> the body. The NetBSD tests I found assume that they share address
>> space.
>>
>> http://people.freebsd.org/~pho/cleanup_test.c
>>
>> $ kyua debug cleanup_test:maxfiles
>> /usr/src/tests/sys/kern/cleanup_test.c:14: pid 74893
>> global = 0. /usr/src/tests/sys/kern/cleanup_test.c:20: pid 74894
>> cleanup_test:maxfiles -> passed
>> $
>>
>
> Since you aren't getting any help here, you should try posting this
> question to kyua-discuss at googlegroups.com. It's not FreeBSD-specific.
FWIW, this is a design caveat I discovered when trying to implement global (test case wide) setup/cleanup routines, and port over other testcases from NetBSD’s libc test suite.
Cheers,
-Garrett
More information about the freebsd-testing
mailing list