The ATF cleanup routine
peter at holm.cc
Sun Mar 2 16:24:59 UTC 2014
On Sun, Mar 02, 2014 at 03:32:57AM -0800, Garrett Cooper wrote:
> 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.
Thank you for your reply.
This is of cause not a problem, but just came as a surprise as the two
first examples from NetBSD I looked at, assumes this.
More information about the freebsd-testing