freebsd-nq/tests/sys
Mark Johnston 88c2beac9c Ensure that we test the event condition when a disabled kevent is enabled.
r274560 modified kqueue_register() to only test the event condition if the
corresponding knote is not disabled. However, this check takes place before
the EV_ENABLE flag is used to clear the KN_DISABLED flag on the knote, so
enabling a previously-disabled kevent would not result in a notification for
a triggered event. This change fixes the problem by testing for EV_ENABLED
before possibly checking the event condition.

This change also updates a kqueue regression test to exercise this case.

PR:		206368
Reviewed by:	kib
Sponsored by:	EMC / Isilon Storage Division
Differential Revision:	https://reviews.freebsd.org/D5307
2016-02-19 01:49:33 +00:00
..
acl Use basenames for getfacl, setfacl, and zpool to work around the 2016-02-06 04:13:20 +00:00
aio - Fix an improperly sized buffer for pathname [1] 2015-12-28 02:21:36 +00:00
fifo Pass unsigned long argument to ioctl(). 2015-07-26 14:46:42 +00:00
file Dump out the output from flock_helper on failure so failures with the 2015-12-22 02:10:31 +00:00
geom Similar to r295116, add an additional 1 second sleep after calling ggatel 2016-02-10 17:57:24 +00:00
kern Rename recvfd and sendfd variables in recvfd/sendfd functions to avoid 2015-12-30 18:13:43 +00:00
kqueue Ensure that we test the event condition when a disabled kevent is enabled. 2016-02-19 01:49:33 +00:00
mac Delete the comment about running test_libugidfw_strings before testing 2015-12-23 10:02:51 +00:00
mqueue Fix LDADD/DPADD that should be LIBADD. 2015-12-04 03:17:47 +00:00
netinet Make cleanup routines idempotent 2015-07-04 02:22:26 +00:00
opencrypto Add some new modes to OpenCrypto. These modes are AES-ICM (can be used 2014-12-12 19:56:36 +00:00
pjdfstest Test directories can build in parallel fine. 2016-02-16 02:13:59 +00:00
posixshm Integrate tools/test/posixshm and tools/regression/posixshm into the FreeBSD 2015-10-17 04:32:21 +00:00
vfs Integrate tools/regression/vfs into the FreeBSD test suite as tests/sys/vfs 2015-10-14 08:16:15 +00:00
vm Add more mmap tests related to character devices. 2015-09-04 01:02:21 +00:00
Makefile Test directories can build in parallel fine. 2016-02-16 02:13:59 +00:00