]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
swapcontext1: test for getcontext(3) and swapcontext(3) success properly
authorEnji Cooper <ngie@FreeBSD.org>
Wed, 4 Jan 2017 08:35:46 +0000 (08:35 +0000)
committerEnji Cooper <ngie@FreeBSD.org>
Wed, 4 Jan 2017 08:35:46 +0000 (08:35 +0000)
commit64af3fbabac62b2db7bf0defc1b57637c96cbab8
treed5519e0b3c91e08bb60f6256271b495bd1dbb429
parent7251167f52e91c133ea5b245fa43060397b02c8c
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