From owner-cvs-src-old@FreeBSD.ORG Thu Jul 7 18:07:22 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C40BB1065676 for ; Thu, 7 Jul 2011 18:07:22 +0000 (UTC) (envelope-from jonathan@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id B2F468FC1C for ; Thu, 7 Jul 2011 18:07:22 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p67I7M2a009470 for ; Thu, 7 Jul 2011 18:07:22 GMT (envelope-from jonathan@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p67I7MV7009469 for cvs-src-old@freebsd.org; Thu, 7 Jul 2011 18:07:22 GMT (envelope-from jonathan@repoman.freebsd.org) Message-Id: <201107071807.p67I7MV7009469@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jonathan@repoman.freebsd.org using -f From: Jonathan Anderson Date: Thu, 7 Jul 2011 18:07:03 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/tools/regression/kqueue config.h main.c proc.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2011 18:07:22 -0000 jonathan 2011-07-07 18:07:03 UTC FreeBSD src repository Modified files: tools/regression/kqueue config.h main.c proc.c Log: SVN rev 223845 on 2011-07-07 18:07:03Z by jonathan Ensure that kqueue is not inherited across fork(). Modify the existing unit test (from libkqueue) which already exercises process events via fork() and kill(). Now, the child process simply checks that the 'kqfd' descriptor is invalid. Some minor modifications were required to make err() work correctly. It seems that this test was imported using the output of a configure script, but config.h was not included in key places, nor was its syntax correct (need '#define HAVE_FOO 1' rather than '#define HAVE_FOO'). Finally, change main() to run the "proc" suite by default, but widened the '#if TODO' in proc.c to include the non-functioning test event_trigger(). Approved by: mentor (rwatson), re (Capsicum blanket) Sponsored by: Google Inc Revision Changes Path 1.3 +4 -4 src/tools/regression/kqueue/config.h 1.3 +2 -1 src/tools/regression/kqueue/main.c 1.2 +15 -1 src/tools/regression/kqueue/proc.c