From owner-freebsd-testing@FreeBSD.ORG Sun Mar 2 16:24:59 2014 Return-Path: Delivered-To: freebsd-testing@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9154F41C for ; Sun, 2 Mar 2014 16:24:59 +0000 (UTC) Received: from relay01.pair.com (relay01.pair.com [209.68.5.15]) by mx1.freebsd.org (Postfix) with SMTP id 3814710C7 for ; Sun, 2 Mar 2014 16:24:58 +0000 (UTC) Received: (qmail 28359 invoked from network); 2 Mar 2014 16:18:17 -0000 Received: from 87.58.146.155 (HELO x2.osted.lan) (87.58.146.155) by relay01.pair.com with SMTP; 2 Mar 2014 16:18:17 -0000 X-pair-Authenticated: 87.58.146.155 Received: from x2.osted.lan (localhost [127.0.0.1]) by x2.osted.lan (8.14.5/8.14.5) with ESMTP id s22GIF1x042930; Sun, 2 Mar 2014 17:18:15 +0100 (CET) (envelope-from pho@x2.osted.lan) Received: (from pho@localhost) by x2.osted.lan (8.14.5/8.14.5/Submit) id s22GIFOv042929; Sun, 2 Mar 2014 17:18:15 +0100 (CET) (envelope-from pho) Date: Sun, 2 Mar 2014 17:18:15 +0100 From: Peter Holm To: Garrett Cooper Subject: Re: The ATF cleanup routine Message-ID: <20140302161815.GA42639@x2.osted.lan> References: <20140227124911.GA37892@x2.osted.lan> <7C6A91CA-3C40-48BF-B230-4F388F05B8CA@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7C6A91CA-3C40-48BF-B230-4F388F05B8CA@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "freebsd-testing@freebsd.org" X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Mar 2014 16:24:59 -0000 On Sun, Mar 02, 2014 at 03:32:57AM -0800, Garrett Cooper wrote: > On Mar 1, 2014, at 4:03 PM, Alan Somers wrote: > > > On Thu, Feb 27, 2014 at 5:49 AM, Peter Holm 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