GNOME Bugzilla – Bug 728368
check: add GstHarness convenience API for unit tests
Last modified: 2015-07-07 00:01:30 UTC
Just a quick note that I'm working on integrating this (incl. docs and fix-ups).
Tim: We are updating our implementation @ https://github.com/pexip/gstreamer
Note that we might rebase this repository.
One annoying issue using GstCheck and GstTestClock (which GstHarness uses) is that since gst_deinit is called atexit, an element that does a clock_wait on the testclock will deadlock if a unit test fail.
it would be helpful if you would make additional changes to gstharness as additional commits on top of what you have now (rather than git commit --amend + git push -f). Rebasing on top of master is not a problem of course.
Regarding gst_deinit(), that should be fixed in master, at least when using fork(), see exit() --> _exit() commit in libcheck.
Hi guys, do you have a view on when GstHarness is going to be on master?
I plan to get to it this cycle. I will try to put my WIP branch up somewhere soon.
Created attachment 284498 [details] [review]
fixed 'Unexpected critical/warning: [...] Got data flow before segment event'
It fixes an issue seen when I try to run the first example give during the presentation of 'GstHarness' last year on GStreamer conference.
I've also made a pull-request to the pexip-repo. Just to be sure ;)
*** This bug has been marked as a duplicate of bug 751916 ***