[Bug 758323] tests: Fix spuriously failing netclientclock test on OSX

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Nov 19 02:11:05 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=758323

--- Comment #1 from Heinrich Fink <hfink at toolsonair.com> ---
Created attachment 315876
  --> https://bugzilla.gnome.org/attachment.cgi?id=315876&action=edit
tests: Fix spuriously failing netclientclock test on OSX

On OSX, startup sync might take longer than what has been assumed in the
test, hence failing the test. OSX seems to be exposed to more OS
scheduling jitter, i.e. the observed RTTs take some time to be become
stable enough.

This patch first of all replaces the startup sync code in the test with
the new gst_clock_wait_for_sync API, and secondly, doesn't try to test
for startup sync to be fast. Instead we set some high timeout for sanity
reasons (10 seconds), and whenever the clock says it's ready, we check
(like before), if the server/client times are close enough. Lastly,
observed diff now uses GstClockTimeDiff and related macros for logging.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list