diff options
author | ngie <ngie@FreeBSD.org> | 2016-01-06 20:50:23 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-01-06 20:50:23 +0000 |
commit | ad386aeec35ec2185d270b03008f3fb87a977e77 (patch) | |
tree | fc52b8e64563fb38c80e71666791dd6b4c7f5168 /usr.bin/locate | |
parent | 6631311a86b5a2c574f55cc9e5d82c296407ede6 (diff) | |
download | FreeBSD-src-ad386aeec35ec2185d270b03008f3fb87a977e77.zip FreeBSD-src-ad386aeec35ec2185d270b03008f3fb87a977e77.tar.gz |
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: 1229995, 1229991, 1229988, 1229994, 1229989, 1229992
CID: 1229993, 1229990, 1229984, 1229967, 1230005, 1229977
CID: 1229966, 1230004, 1229976
Diffstat (limited to 'usr.bin/locate')
0 files changed, 0 insertions, 0 deletions