GNOME Bugzilla – Bug 797291
tests: pipeline processing deadline unit test fails in valgrind
Last modified: 2018-10-17 20:44:31 UTC
For me the new test_pipeline_processing_deadline unit test reliably fails in valgrind, e.g.: $ GST_CHECKS=test_pipeline_processing_deadline make gst/gstpipeline.valgrind Running suite(s): GstPipeline 0%: Checks: 1, Failures: 1, Errors: 0 gst/gstpipeline.c:721:F:pipeline tests:test_pipeline_processing_deadline:0: Pipeline position is not at least 50millisecond (reported 149976914 nanoseconds) $ GST_CHECKS=test_pipeline_processing_deadline make gst/gstpipeline.valgrind Running suite(s): GstPipeline gst/gstpipeline.c:721:F:pipeline tests:test_pipeline_processing_deadline:0: Pipeline position is not at least 50millisecond (reported 90000000 nanoseconds) Wonder if this is expected e.g. due to tight timing and scheduling shenanigans, or something that needs fixing or if the test should be skipped if we're running in valgrind?
I replaced the wait with a GstTestClock, I wonder why I didn't use that in the first place!
Commit is: commit 5658ae998606a180539d970701bd72a45d59370b Author: Olivier Crête <olivier.crete@collabora.com> Date: Wed Oct 17 16:38:42 2018 -0400 tests: Use GstTestClock for processing-deadline test Use the test clock instead of using a real one to make it easier to run in valgrind. https://bugzilla.gnome.org/show_bug.cgi?id=797291