Add a test case for a connection on accept queue that is reset beforeit is accepted. In that case accept(2) shall return ECONNABORTED.Accept filters provide help with easily replicating that case.
Make the test to leave one connection on the incomplete queuebefore exiting. This examines some race conditions in kernel.
Improve this unit test: make sure that the accept filter actually works.Before this test just checked scenario of setting and removing the acceptfilter at different states of the socket. Now it a
Improve this unit test: make sure that the accept filter actually works.Before this test just checked scenario of setting and removing the acceptfilter at different states of the socket. Now it also checks that acceptfilter works: we connect to the server, and then check that we can't accept,then we send 1 byte of data and check again.
show more ...
- Check for accf_filter before running the tests, otherwise it will always fail at subtest 9/11- Use strncpy instead of strcpy with afa.af_name
Fix -Wunused warnings, bump WARNS to 6The testcase fails today on subtest # 9The output is still broken if prove -rv is run and the testcase abortsprematurely (the testcase doesn't really confor
Fix -Wunused warnings, bump WARNS to 6The testcase fails today on subtest # 9The output is still broken if prove -rv is run and the testcase abortsprematurely (the testcase doesn't really conform to TAP protocol properly,except when it completes fully)MFC after: 1 weekSponsored by: EMC / Isilon Storage Division
NO_MAN= has been deprecated in favor of MAN= for some time, go aheadand finish the job. ncurses is now the only Makefile in the tree thatuses it since it wasn't a simple mechanical change, and will
NO_MAN= has been deprecated in favor of MAN= for some time, go aheadand finish the job. ncurses is now the only Makefile in the tree thatuses it since it wasn't a simple mechanical change, and will beaddressed in a future commit.
- Remove a bogus test: setsockopt() doesn't return a length, getsockopt() does.- Use %z to printf a size_t to fix compile on 64-bit platforms.
o setsockopt(2) cannot remove accept filter. [1]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 r
o setsockopt(2) cannot remove accept filter. [1]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: alfredMFC after: 2 weeks
Start the dreaded NOFOO -> NO_FOO conversion.OK'ed by: core
Switch over to a different, more flexible test output protocol that'sunderstood by Perl's Test::Harness module and prove(1) commands.Update README to describe the new protocol. The work's broken
Switch over to a different, more flexible test output protocol that'sunderstood by Perl's Test::Harness module and prove(1) commands.Update README to describe the new protocol. The work's broken down intotwo 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, alsoproduce a header describing the number of tests that are expected to berun.Second, provide the .t files that actually run the tests. In some casesthese 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 thatbehaviour 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.
For variables that are only checked with defined(), don't provideany fake value.
Use errx() instead of fprintf()/exit() for conciseness.Suggested by: ru (some time ago)
Simple attachment regression test to attach the "accf_data" acceptfilter to an inet socket and check at various points during the socketlife cycle that the filter can or cannot be attached, and tha
Simple attachment regression test to attach the "accf_data" acceptfilter to an inet socket and check at various points during the socketlife cycle that the filter can or cannot be attached, and that onceattached that the right one is attached and that it can be queried.