From owner-freebsd-testing@FreeBSD.ORG Sun Mar 2 11:33:02 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 01A77832; Sun, 2 Mar 2014 11:33:02 +0000 (UTC) Received: from mail-pa0-x233.google.com (mail-pa0-x233.google.com [IPv6:2607:f8b0:400e:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C39CC160C; Sun, 2 Mar 2014 11:33:01 +0000 (UTC) Received: by mail-pa0-f51.google.com with SMTP id kq14so2664112pab.10 for ; Sun, 02 Mar 2014 03:33:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=3taY84HenFTBzvVQJUPgugI+DNCILiDUIwnYkuF+6OE=; b=MboSyjiKQSPCfP4BMKkWxpIDIioMEM1EuXV4hDI7rcpPZVcb0YDAxaie74eRiA4t1n wgvxMO4WmItpqquM0qgQD+4ZhxH9axbHWSlhHbtTmY7l/ghWsI0YBGpxQ228Fp+DAHVU icvEgpQ6glxoih2BKaCBnqgQ25NUqaqcvX34QU+dzDzE4/n53atsCH0szgq71IFKbFot 3QetuhK4OE80OiIIVvA7QR7w94CGc2/v8G6nLe7QRVsE4Bhigfeu77zQ1AfKGe+pEEhm TPVLO2baHM7Dg15BX4kuhBFyyCnP6Bho+M9yrtvlb7TM1nNEY7DIGfjCa1C9t3pz/ukz z+Rg== X-Received: by 10.66.189.226 with SMTP id gl2mr13863377pac.65.1393759981324; Sun, 02 Mar 2014 03:33:01 -0800 (PST) Received: from [192.168.20.5] (c-24-17-226-153.hsd1.wa.comcast.net. [24.17.226.153]) by mx.google.com with ESMTPSA id tu3sm59733630pab.1.2014.03.02.03.32.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Mar 2014 03:33:00 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: The ATF cleanup routine From: Garrett Cooper In-Reply-To: Date: Sun, 2 Mar 2014 03:32:57 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <7C6A91CA-3C40-48BF-B230-4F388F05B8CA@gmail.com> References: <20140227124911.GA37892@x2.osted.lan> To: Alan Somers X-Mailer: Apple Mail (2.1827) Cc: "freebsd-testing@freebsd.org" , Peter Holm 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 11:33:02 -0000 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. >>=20 >> http://people.freebsd.org/~pho/cleanup_test.c >>=20 >> $ kyua debug cleanup_test:maxfiles >> /usr/src/tests/sys/kern/cleanup_test.c:14: pid 74893 >> global =3D 0. /usr/src/tests/sys/kern/cleanup_test.c:20: pid 74894 >> cleanup_test:maxfiles -> passed >> $ >>=20 >=20 > 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=92s libc test suite. Cheers, -Garrett=