tests: pipeline: try to make test_pipeline_reset_start_time more reliable
authorTim-Philipp Müller <tim@centricular.com>
Thu, 15 Feb 2018 13:36:26 +0000 (13:36 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 15 Feb 2018 13:40:22 +0000 (13:40 +0000)
commitf6b1533e7a7bdfeab165be66008bb48123bd89d2
treeed972349bbbd7e7c04d35b8231ab8f4ba2aa62fe
parentdd78aa27a47910fd824c508414c3eb3f91a992f8
tests: pipeline: try to make test_pipeline_reset_start_time more reliable

Occasionally this test would fail, especially if the system is under load,
because the position query would pick up the last position from the
last buffer timestamp which has a lower timestamp than what we're
looking for. The sleep is long enough, however. It's unclear to me why
exactly this happens but there seems to be some kind of scheduling
issue going on as the streaming thread floods the sink with buffers.

Let's throttle the fakesrc to 100 buffers per second and make the sink
sync to the clock to restore some sanity. It should be totally sufficient
to test what we want to test, and seems to make things reliable here.
tests/check/gst/gstpipeline.c