summaryrefslogtreecommitdiffstats
path: root/tools/regression/sockets
Commit message (Collapse)AuthorAgeFilesLines
* o setsockopt(2) cannot remove accept filter. [1]maxim2005-06-111-10/+46
| | | | | | | | | | o getsockopt(SO_ACCEPTFILTER) always returns success on listen socket even we didn't install accept filter on the socket. o Fix these bugs and add regression tests for them. Submitted by: Igor Sysoev [1] Reviewed by: alfred MFC after: 2 weeks
* Close the connect socket as well as the listen socket on completion.rwatson2005-05-161-2/+2
| | | | Update copyright.
* Check the return value of shutdown().rwatson2005-03-111-4/+8
|
* Add sigpipe, a simple UNIX domain socket and TCP regression test that isrwatson2005-03-112-0/+327
| | | | | | | | | | | | | intended to verify that SIGPIPE is delivered to a process writing or sending on a socket that has been shut down for write. If available, SO_NOSIGPIPE is also tested. This regression test is currently passed by RELENG_4, but not by HEAD or RELENG_5, due to a bug in the write() code for sockets. SO_NOSIGPIPE is not present in RELENG_4, however, so is not tested there. Reported by: Mikko Tyolajarvi <mbsd at pacbell dot net> PR: 78478
* Add a simple regression test for stream UNIX domain sockets and therwatson2005-02-202-0/+325
| | | | | | bind()/connect() system calls, which is intended to confirm that the right successes and errors occur when rendezvousing via the file system name space.
* Use WARNS?= instead of WARNS= in Makefiles so that global warningrwatson2005-01-222-2/+2
| | | | | | settings can override local ones. Pointed out by: ru
* Add test which excersises problem with unability to change association ofsobomax2005-01-122-0/+149
| | | | | already associated datagram unix domain socket by issuing connect() system call.
* Start the dreaded NOFOO -> NO_FOO conversion.ru2004-12-215-5/+5
| | | | OK'ed by: core
* Switch over to a different, more flexible test output protocol that'snik2004-11-116-27/+112
| | | | | | | | | | | | | | | | | | | | understood by Perl's Test::Harness module and prove(1) commands. Update README to describe the new protocol. The work's broken down into two main sets of changes. First, update the existing test programs (shell scripts and C programs) to produce output in the ok/not ok format, and to, where possible, also produce a header describing the number of tests that are expected to be run. Second, provide the .t files that actually run the tests. In some cases these are copies of, or very similar too, scripts that already existed. I've kept the old scripts around so that it's possible to verify that behaviour under this new system (in terms of whether or not a test fails) is identical to the behaviour under the old system. Add a TODO file.
* Add a small regression test that opens a TCP socket, listens on it,rwatson2004-11-022-0/+120
| | | | | | | | performs a non-blocking connect from another socket, and then closes the listen socket rather than accepting. This is intended to exercise the close path in which connections are aborted due to a close on the listen socket while the connection is in the listen queue.
* For variables that are only checked with defined(), don't provideru2004-10-243-3/+3
| | | | any fake value.
* Use errx() instead of fprintf()/exit() for conciseness.rwatson2004-10-231-65/+38
| | | | Suggested by: ru (some time ago)
* Use errx() instead of perror()/exit() for conciseness.rwatson2004-10-231-44/+24
| | | | Suggested by: ru (some time ago)
* Modify accept_fd_leak regression test to generate "PASS" output, notrwatson2004-09-181-2/+3
| | | | | just "FAIL" output, in order to make it consistent with other tests in the regression test tree.
* Join the effort in simplifying this makefile. ;)ru2004-09-031-3/+1
|
* Pass O_NONBLOCK directly to fcntl() rather than the pointer to an intrwatson2004-09-021-12/+8
| | | | | holding the value O_NONBLOCK. This worked previously because I was lucky.
* Don't override the rule used to build a binary by providing our ownrwatson2004-09-021-1/+0
| | | | compiler line.
* Make sure to properly initialize 'size' to sizeof(sin) before passingrwatson2004-08-241-0/+1
| | | | | it into accept(). Depending on the initial value in memory, it is otherwise possible to get EINVAL.
* Add a basic kqueue + UNIX domain socket pair regression test to do somerwatson2004-08-242-0/+340
| | | | | | elementary exercising of kqueues on datagram and stream sockets. Note that the datagram write kqueue case is left untested due to potentially confusing behavior for the developer (me) that might require attention.
* Add minimal socketpair() regression test to confirm that we can createrwatson2004-08-042-0/+139
| | | | | (and close) PF_UNIX socket pairs, and that we can't create PF_INET socket pairs. More tests to follow.
* Simple attachment regression test to attach the "accf_data" acceptrwatson2004-07-262-0/+211
| | | | | | filter to an inet socket and check at various points during the socket life cycle that the filter can or cannot be attached, and that once attached that the right one is attached and that it can be queried.
* Add simple regression test to detect leakage of file descriptors whenrwatson2004-07-172-0/+142
accept() returns EAGAIN on a non-blocking listen socket. This is the tool I used to check that such a bug was resolved when merging accept() locking.
OpenPOWER on IntegriCloud