]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r270228:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 6 Jan 2016 20:50:23 +0000 (20:50 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 6 Jan 2016 20:50:23 +0000 (20:50 +0000)
commit78d4b6eef80555e609b0bd01ac43c7641888e0af
treefc52b8e64563fb38c80e71666791dd6b4c7f5168
parent97d732769f9b30e18648b421f7bace9ba3e0a9bc
MFC r270228:
r270228 (by asomers):

Numerous small fixes, mostly suggested by Coverity.

tests/sys/kern/unix_seqpacket_test.c
* Remove a duplicate error check in mk_pair_of_sockets
* Always close sockets in the success path of ATF test cases.  Don't
  bother with the error paths, because those are mostly assertions
  anyway.  Most of these socket leaks were reported by Coverity.
  All of them are harmless, because each ATF test case runs in its
  own process.
* Fix the len argument to send in shutdown_send and
  shutdown_send_sigpipe.  The old version was using sizeof a pointer
  instead of sizeof the char array.  Reported by Coverity.
* Change a few ATF_CHECK to ATF_REQUIRE if the test can't reasonably
  continue past a failure.

CID: 122999512299911229988122999412299891229992
CID: 122999312299901229984122996712300051229977
CID: 122996612300041229976

git-svn-id: svn://svn.freebsd.org/base/stable/10@293275 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
tests/sys/kern/unix_seqpacket_test.c