Date: Sun, 2 Mar 2014 17:18:15 +0100 From: Peter Holm <peter@holm.cc> To: Garrett Cooper <yanegomi@gmail.com> Cc: "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org> Subject: Re: The ATF cleanup routine Message-ID: <20140302161815.GA42639@x2.osted.lan> In-Reply-To: <7C6A91CA-3C40-48BF-B230-4F388F05B8CA@gmail.com> References: <20140227124911.GA37892@x2.osted.lan> <CAOtMX2gp8PwO2oHAA6oNcD9fP7ZCFHYrz=D-hjP-F16yRRwrhw@mail.gmail.com> <7C6A91CA-3C40-48BF-B230-4F388F05B8CA@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 02, 2014 at 03:32:57AM -0800, Garrett Cooper wrote: > On Mar 1, 2014, at 4:03 PM, Alan Somers <asomers@freebsd.org> wrote: > > > On Thu, Feb 27, 2014 at 5:49 AM, Peter Holm <peter@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@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 Hello Garrett, 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. - Peter
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140302161815.GA42639>