memblockq-test: Add a test for missing data behaviour
authorUlrich Eckhardt <ulrich.eckhardt@base-42.de>
Sun, 26 Jun 2016 19:15:44 +0000 (21:15 +0200)
committerArun Raghavan <arun@arunraghavan.net>
Fri, 22 Jul 2016 10:19:59 +0000 (15:49 +0530)
commitfec2a3dd05e2e78fd22c402deb356b2ddad49c46
treeffefde5a4466b9c9a8842043859473574b16dd5d
parentad52f9a6ba5ca7c0d76376b8c1f60ac27220ea3a
memblockq-test: Add a test for missing data behaviour

This involves in particular pa_memblockq_missing() and
pa_memblockq_pop_missing(). The test demonstrates that the latter
doesn't work as expected. It should report whenever queue level is
drained below target level. Instead, it reports any case that the queue
level is drained, even when it is still above target level.
src/tests/memblockq-test.c