queue2: Fix watermark test
authorCarlos Rafael Giani <dv@pseudoterminal.org>
Sun, 11 Sep 2016 13:28:43 +0000 (15:28 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 17 Sep 2016 09:00:34 +0000 (10:00 +0100)
commit5de03542ea2c77ef50444965739adcd9dc590526
tree405394e8f4f2dd25b260f9afaba7f26579eaaf5d
parent7413064f06a03e6f13a0f0c8d88b42cc83d55891
queue2: Fix watermark test

This carries over code for a similar test from multiqueue to ensure full
control over the dataflow while testing. (The previous attempt was racy
since the fill level changed without any thread sync with the test code.)

https://bugzilla.gnome.org/show_bug.cgi?id=771210
tests/check/elements/queue2.c