<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/tools/regression/kqueue/proc.c, branch releng/9.2</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=releng%2F9.2</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=releng%2F9.2'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2011-07-08T12:16:30Z</updated>
<entry>
<title>Clarify the meaning of a test.</title>
<updated>2011-07-08T12:16:30Z</updated>
<author>
<name>Jonathan Anderson</name>
<email>jonathan@FreeBSD.org</email>
</author>
<published>2011-07-08T12:16:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=345f2b96e21c26a7296c44469499f28ad566b436'/>
<id>urn:sha1:345f2b96e21c26a7296c44469499f28ad566b436</id>
<content type='text'>
Rather than using err() if either of two failure conditions
fires (which can produce spurious error messages), just use
errx() if the one condition that really matters fires.

In practice, this single test is enough to detect the failure
mode we're looking for (kqueue being inherited across fork).

Approved by: mentor (rwatson), re (Capsicum blanket)
Sponsored by: Google Inc
</content>
</entry>
<entry>
<title>Ensure that kqueue is not inherited across fork().</title>
<updated>2011-07-07T18:07:03Z</updated>
<author>
<name>Jonathan Anderson</name>
<email>jonathan@FreeBSD.org</email>
</author>
<published>2011-07-07T18:07:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=0136244a52e8bf8391a286a95830567b864211c7'/>
<id>urn:sha1:0136244a52e8bf8391a286a95830567b864211c7</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Add Mark Heily's libkqueue test suite as a general kqueue test suite to</title>
<updated>2009-12-13T20:27:46Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2009-12-13T20:27:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=60a396a4f706dca30f80b07cd78fba974d1cc7e2'/>
<id>urn:sha1:60a396a4f706dca30f80b07cd78fba974d1cc7e2</id>
<content type='text'>
tools/regression.  It tests a number of aspects of kqueue behavior,
although not all currently pass (possibly bugs in the test suite?).

Submitted by:	Mark Heily &lt;mark at heily.com&gt;
Obtained from:	svn://mark.heily.com/libkqueue/trunk/test (r114)
</content>
</entry>
</feed>
