GNOME Bugzilla – Bug 753365
basesrc: Test Assertion 'segment->rate == 0.5' failed
Last modified: 2018-11-03 12:29:30 UTC
I was running make check over core, and got this one time failure. After running: make -C tests/check libs/basesrc.forever I ended up with: 87%: Checks: 8, Failures: 1, Errors: 0 libs/basesrc.c:598:F:general:basesrc_seek_events_rate_update:0: Assertion 'segment->rate == 0.5' failed make: Leaving directory '/home/nicolas/Sources/gstreamer-master/gstreamer/tests/check'
Created attachment 308910 [details] [review] basesrc-test: Fix race testing segment update As this test is using a short sleep (GST_USECOND, which is 10ms in microsecond), sometimes that EOS event is received before the loop in basesrc have run _do_seek() and pushed the update segment. To solve this issue, we wait for the initial segment (and flush it) then we wait for the second segment before sending EOS.
Note that all the tests wrongly pretends waiting for 1 second, but in fact wait for 10ms. There is as many possible race as there is sleeps in that test imho.
Leaving open, as we could try and fix the other test later, this one was the only one I could manage to get failing though. Attachment 308910 [details] pushed as 900110c - basesrc-test: Fix race testing segment update
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/127.