Module Name: src Committed By: pooka Date: Mon Dec 6 11:32:01 UTC 2010
Modified Files: src/tests/net/bpf: Makefile Added Files: src/tests/net/bpf: t_bpf.c Log Message: Add an xfail test for the mbuf leak described in PR kern/44196. This is yet another example of a simple test which would be much trickier to execute against the host kernel. You would either need to put networking in a complete lockdown, or do some "statistical" methods where you trigger the bug many many times and attempt to ascertain a rising trend in mbuf count. And, of course, the leaked mbufs don't go away from the host kernel once the test ends. In contrast, we *know* that there is no other networking activity in a rump kernel, so we can execute the operation exactly once, plus the leaked mbuf "disappears" when the test is done. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/net/bpf/Makefile cvs rdiff -u -r0 -r1.1 src/tests/net/bpf/t_bpf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.