From owner-freebsd-testing@FreeBSD.ORG Thu Feb 27 12:55:54 2014 Return-Path: Delivered-To: freebsd-testing@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3AD83268 for ; Thu, 27 Feb 2014 12:55:54 +0000 (UTC) Received: from relay00.pair.com (relay00.pair.com [209.68.5.9]) by mx1.freebsd.org (Postfix) with SMTP id CD97C14D9 for ; Thu, 27 Feb 2014 12:55:53 +0000 (UTC) Received: (qmail 75609 invoked from network); 27 Feb 2014 12:49:12 -0000 Received: from 87.58.146.155 (HELO x2.osted.lan) (87.58.146.155) by relay00.pair.com with SMTP; 27 Feb 2014 12:49:12 -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 s1RCnB1g038206 for ; Thu, 27 Feb 2014 13:49:11 +0100 (CET) (envelope-from pho@x2.osted.lan) Received: (from pho@localhost) by x2.osted.lan (8.14.5/8.14.5/Submit) id s1RCnB5B038205 for freebsd-testing@freebsd.org; Thu, 27 Feb 2014 13:49:11 +0100 (CET) (envelope-from pho) Date: Thu, 27 Feb 2014 13:49:11 +0100 From: Peter Holm To: freebsd-testing@freebsd.org Subject: The ATF cleanup routine Message-ID: <20140227124911.GA37892@x2.osted.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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: Thu, 27 Feb 2014 12:55:54 -0000 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 $ -- Peter