]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
swapcontext1: test for getcontext(3) and swapcontext(3) success properly
authorngie <ngie@FreeBSD.org>
Wed, 4 Jan 2017 08:35:46 +0000 (08:35 +0000)
committerngie <ngie@FreeBSD.org>
Wed, 4 Jan 2017 08:35:46 +0000 (08:35 +0000)
commitb42da810c8298576ece578b336a1ab2bff11e885
treed5519e0b3c91e08bb60f6256271b495bd1dbb429
parentf77699107af3c8ca6fc0b987a75a207d24f93eaf
swapcontext1: test for getcontext(3) and swapcontext(3) success properly

The beforementioned libcalls both succeed if the return codes aren't -1

MFC after: 3 days
Reported by: Coverity
CID: 976790, 976791
contrib/netbsd-tests/lib/libpthread/t_swapcontext.c