summaryrefslogtreecommitdiffstats
path: root/regress/sys/kern/kqueue (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add a regression test for kqueue recursion. Also check that select(2)visa2020-03-082-2/+141
| | | | and poll(2) work with kqueue.
* add kqueue pty close slave testanton2019-03-042-2/+37
|
* add support for multiple kqueue pty testsanton2019-03-044-15/+27
|
* one regress test per line to reduce future churnanton2019-03-041-4/+16
|
* Add a regression test for the kernel stack exhaustion bug.visa2018-08-242-3/+69
| | | | OK anton@
* Add a test covering the recently fixed issue with dangling knote references uponanton2018-08-134-13/+92
| | | | closing a kqueue file descriptor.
* Improve synchronization between the parent and children. This fixesvisa2018-08-031-27/+35
| | | | | | | a spurious test failure spotted by anton@ and eliminates sleeping in the test. Feedback and OK anton@
* fix usageanton2018-06-171-2/+3
|
* Add a test covering the panic found in knote_processexit(). Note that you'llanton2018-06-174-6/+45
| | | | | need a kernel with the latest changes to kqueue in order to not panic your machine while running the tests.
* kevent: correctly check that timeout's nanoseconds are on [0, 1000000000)cheloha2018-05-224-6/+41
| | | | | | | | | | | Validate the input with timespecfix before truncating to a timeval. timespecfix does not round, so we need to to it by hand after validation. FreeBSD and NetBSD check the input with this range, we ought to as well. Also add a regression test for this case. ok tb@
* Prefer <fcntl.h> over <sys/fcntl.h> in userlandguenther2018-04-261-6/+3
| | | | | | While here, delete some extra #includes and apply style(9) sort rules. ok deraadt@ krw@ mpi@
* Use /dev/console as a template for the pseudo tty, stdin may be notbluhm2016-09-211-8/+25
| | | | | | a terminal. Check wether tcgetattr() can read the values. Do not only verify that kqueue does not report unwanted events but also that expected events exist.
* To make debugging the kqueue test easier, always print the assertionbluhm2016-09-2013-165/+145
| | | | failure before returning.
* When passing the (1ULL << 32) to EV_SET, it gets casted to __uintptr_t.bluhm2016-09-041-2/+2
| | | | | | On 32 bit architectues, the high bit is lost and the test fails. Create an invalid pid in the lower 32 bits. OK guenther@
* Prevent silly states via knotes on pids > 2^32 and on nonexistent signals.guenther2016-07-142-2/+17
| | | | ok tedu@
* Last parameter to execl[e]() functions *must* be cast to a pointer.krw2016-03-171-2/+2
| | | | | | | | | | | | Just NULL is not good practise as NULL is theoretically allowed to be an integer rather than a pointer. Use (char *)NULL consistently instead of scattering a few (char *)0 and (void *)NULL into the mix. Prompted by and probably ok deraadt@ millert@ kettenis@ Definitely ok mestre@ ratchov@
* simplistic regress test for KEVENT_TIMER kqueue(2) callsblambert2015-12-053-5/+78
| | | | ok and prodding tedu@
* NOTE_FORK|NOTE_TRACK knote can track grandchild processes. Wait foruebayasi2015-08-131-4/+10
| | | | both child/grandchild process events.
* Zero-clear test buffers. Close fds.uebayasi2015-08-131-1/+4
|
* Close an fd.uebayasi2015-08-131-1/+2
|
* Zero-clear test buffer. Close fds.uebayasi2015-08-131-1/+6
|
* Zero-clear test buffer.uebayasi2015-08-131-1/+3
|
* Zero-clear test buffer. KNF while here.uebayasi2015-08-131-3/+8
|
* Kill a useless assignment.uebayasi2015-08-021-2/+1
|
* Refactor to prepare a future change; no functional changes.uebayasi2015-08-021-14/+16
|
* SPC -> TABuebayasi2015-08-011-32/+32
|
* Disable kq-tun test, as it's been broken for a while and not because of kqguenther2015-04-251-2/+3
|
* using /dev/random is okderaadt2014-11-221-3/+3
|
* missing argument to printfmiod2013-01-071-2/+3
|
* Add a test for kevent(EV_DELETE) screwing with POSIX file locksguenther2012-07-083-5/+103
|
* Add tests for kqueue EVFILT_SIGNAL and that they can't be passed overguenther2011-07-074-8/+200
| | | | sockets
* braces rock!guenther2011-07-071-2/+3
|
* Switch to a device that isn't deprecated and return more info onguenther2011-07-061-3/+4
| | | | read failure
* do not rely on rndvar.h leaking shit into the namespacederaadt2011-01-071-2/+2
|
* tun* interfaces are now automatically destroyed on last close whenguenther2010-08-041-3/+1
| | | | originally created by opening /dev/tun*
* Confirm that a NOTE_EXIT knote is delivered when the child exitsguenther2010-08-041-3/+19
| | | | Fix a C thinko
* Do not print "Read from tunnel foo failed" in the failure case of ablambert2010-06-261-2/+2
| | | | | | function named "tunnel_write", tell people that a write failed. ok claudio@
* define REGRESS_ROOT_TARGETS for tests that require root privilegesdavid2004-12-291-1/+2
|
* regress tests full of warnings make me go redderaadt2004-02-281-5/+5
|
* destroy, not delete tunXXmarkus2003-12-071-3/+3
|
* - use tun98 and tun99 and not interfere with existing tun(4)markus2003-12-072-16/+22
| | | | | | | - use IPs from the example rage - destroy tun98/99 after the test - test all of select/poll and kqueue ok deraadt
* delete nasty mickey changederaadt2003-12-021-5/+1
|
* tun(4) select+kq tests from Christopher Maxwell <cmaxwell@themanor.net> w/ little mods of minemickey2003-12-023-8/+189
|
* various cleanups; david says results are samederaadt2003-07-315-7/+17
|
* fix the licensemickey2003-07-312-4/+4
|
* better LDADDmickey2003-06-151-2/+2
|
* it has been brought to my attention that i have forgotten a license on this filemickey2003-06-121-1/+3
|
* ugh. cleanup debuggingmickey2003-06-122-21/+10
|
* test for kqueue on ptys (to verify pr3209)mickey2003-06-123-6/+127
|
* -Wall and calc fix in the randommickey2003-06-122-5/+9
|