<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/tests/sys/kqueue, branch release/13.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F13.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F13.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-08-23T17:43:30Z</updated>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-23T17:43:30Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:32:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=023fc80ee38a117fa65b2ccb2abf8bdc7dbd6fd9'/>
<id>urn:sha1:023fc80ee38a117fa65b2ccb2abf8bdc7dbd6fd9</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/

Similar commit in main:
(cherry picked from commit d0b2dbfa0ecf)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line .c comment pattern</title>
<updated>2023-08-23T17:43:23Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:31:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8ad303d68cec3ee1133550de37e0009502621e50'/>
<id>urn:sha1:8ad303d68cec3ee1133550de37e0009502621e50</id>
<content type='text'>
Remove /^/[*/]\s*\$FreeBSD\$.*\n/

Similar commit in main:
(cherry picked from commit 2a63c3be1582)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: two-line .h pattern</title>
<updated>2023-08-23T17:43:21Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:31:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=17da660ad5b3b9cd90e164dd4dbb9beaa7203054'/>
<id>urn:sha1:17da660ad5b3b9cd90e164dd4dbb9beaa7203054</id>
<content type='text'>
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/

Similar commit in main:
(cherry picked from commit b3e7694832e8)
</content>
</entry>
<entry>
<title>kqueue tests: Simplify the test runner</title>
<updated>2022-06-08T00:42:28Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2022-05-25T00:17:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=294386e0f7c008a6717801e90488e23e7e85337e'/>
<id>urn:sha1:294386e0f7c008a6717801e90488e23e7e85337e</id>
<content type='text'>
Just invoke the test program directly instead of trying to convert its
output to TAP format.  The test suite is all or nothing; there's no way
to enumerate individual test cases, so there's no advantage in trying to
massage its output, and doing so throws away information that's useful
when diagnosing test failures.

Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 68fe988a40ca5dedec426735f52471d9af7bddbd)
</content>
</entry>
<entry>
<title>kqueue tests: Add new EVFILT_TIMER regression tests from upstream</title>
<updated>2022-06-08T00:42:25Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2022-05-25T00:16:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f2ce33a640fddeb0763d4114bc7f06aa521effd0'/>
<id>urn:sha1:f2ce33a640fddeb0763d4114bc7f06aa521effd0</id>
<content type='text'>
One of the tests exposes the regression reported in PR 264131.

One test is disabled because FreeBSD does not support setting EV_ONESHOT
on an already-added periodic timer.  Though, in this case the flag is
simply ignored, which isn't ideal.

One test is slightly modified to set EV_ADD when reconfiguring a
disabled timer per some commentary in PR 258412.

Ideally we would re-import the test suite from libkqueue but there is a
fair bit of divergence so this will require some effort.  This just gets
us one small step closer while increasing test coverage.

PR:		258412
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit d6d4f9b45e0be306bdaf53b2133b2cd0f7642167)
</content>
</entry>
<entry>
<title>kqueue tests: Add file and line info to some test failure output</title>
<updated>2022-06-08T00:42:18Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2022-05-25T00:14:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c87ff7f5c659ecab2c7092dd81c4a981d001f9f4'/>
<id>urn:sha1:c87ff7f5c659ecab2c7092dd81c4a981d001f9f4</id>
<content type='text'>
This brings us slightly closer to upstream and is useful when debugging
test failures.

Sponsored by:	The FreeBSD Foundation

(cherry picked from commit c728c56c870abe230e45cee5c477f0d890ebacef)
</content>
</entry>
<entry>
<title>kqueue tests: Re-enable kqueue proc tests</title>
<updated>2022-06-08T00:42:15Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2022-05-25T00:14:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=42ccdf44930fc46f65e8e48ae7c5d82581a6ea6c'/>
<id>urn:sha1:42ccdf44930fc46f65e8e48ae7c5d82581a6ea6c</id>
<content type='text'>
- Some EVFILT_PROC bugs were fixed around the time that the tests were
  disabled.
- I can't reproduce any failures locally.
- Jenkins logs referenced from the PR are gone, so let's re-enable the
  tests and see whether a problem persists.

PR:		233586
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit bc7512cc58af2e8bbe5bbf5ca0059b1daa1da897)
</content>
</entry>
<entry>
<title>Add a test for https://reviews.freebsd.org/D31858 (PR 258310)</title>
<updated>2022-05-07T11:56:58Z</updated>
<author>
<name>Alex Richardson</name>
<email>arichardson@FreeBSD.org</email>
</author>
<published>2021-09-13T09:16:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b0188ea200713bbdbeef6a810f8c46a4833bf09b'/>
<id>urn:sha1:b0188ea200713bbdbeef6a810f8c46a4833bf09b</id>
<content type='text'>
This test (based on https://github.com/jiixyj/epoll-shim/pull/32#issuecomment-891276654)
fails reproducibly on QEMU with KVM and `-smp 2` prior to D31858 (committed
as 98168a6e6c12dab8f608f6b5f5b0b175d2b87ef0) and passes with the patch applied.

Reviewed By:	kib, imp
Differential Revision: https://reviews.freebsd.org/D31862

(cherry picked from commit d7d962ead0b6e5e8a39202d0590022082bf5bfb6)
</content>
</entry>
<entry>
<title>kqueue: don't arbitrarily restrict long-past values for NOTE_ABSTIME</title>
<updated>2021-10-06T07:03:53Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-09-29T19:55:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=121740e18515f56f54931c3d0dbbca620175c2a8'/>
<id>urn:sha1:121740e18515f56f54931c3d0dbbca620175c2a8</id>
<content type='text'>
NOTE_ABSTIME values are converted to values relative to boottime in
filt_timervalidate(), and negative values are currently rejected.  We
don't reject times in the past in general, so clamp this up to 0 as
needed such that the timer fires immediately rather than imposing what
looks like an arbitrary restriction.

Another possible scenario is that the system clock had to be adjusted
by ~minutes or ~hours and we have less than that in terms of uptime,
making a reasonable short-timeout suddenly invalid. Firing it is still
a valid choice in this scenario so that applications can at least
expect a consistent behavior.

(cherry picked from commit 9c999a259f00b35f0467acd351fea9157ed7e1e4)
(cherry picked from commit 2f4dbe279f6b5eb87ec493d96f6943ffdb603ba0)
</content>
</entry>
<entry>
<title>Enable timer tests in sys.kqueue.libkqueue.kqueue_test.main on i386</title>
<updated>2020-04-22T09:53:41Z</updated>
<author>
<name>Li-Wen Hsu</name>
<email>lwhsu@FreeBSD.org</email>
</author>
<published>2020-04-22T09:53:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=79959b84754f856487ecaba16916a8fb62d743cb'/>
<id>urn:sha1:79959b84754f856487ecaba16916a8fb62d743cb</id>
<content type='text'>
They were fixed in r360140

PR:		245768
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
</feed>
