memblockq-test: fix incorrect assumption of pa_memblockq_pop_missing() behaviour
authorTanu Kaskinen <tanuk@iki.fi>
Fri, 30 Dec 2016 15:52:36 +0000 (17:52 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Tue, 3 Jan 2017 02:26:30 +0000 (04:26 +0200)
commitb6e6e78cc26425fdd8667e51ffb5bf6459e7581c
treee058132871eff42cfd73eaff34056eefe97f7e23
parent8e9f07074716b248a17b2d044f3a4d27a2e70a32
memblockq-test: fix incorrect assumption of pa_memblockq_pop_missing() behaviour

The intuitive meaning of "missing" would be the difference between
tlength and the current queue length, and that's how memblockq-test
assumed pa_memblockq_pop_missing() to define the term "missing", but
that was an incorrect assumption, causing the last
pa_memblockq_pop_missing() return value assertion to fail.

This patch fixes the failing assertion and adds some comments about how
the "missing" and "requested" variables in memblockq work.
src/tests/memblockq-test.c