gstreamer/libs/gst/check
Yasushi SHOJI 5d40e49d12 harness: Abort when failed to construct the specified pipeline
gst_harness_new_parse() returns without any error even if it doesn't
find the specified element.  Then a succeeding call to
gst_harness_set_sink_caps_str() causes an error like this:

	Unexpected critical/warning: gst_pad_push_event: assertion 'GST_IS_PAD (pad)' failed

This is a bit cryptic and doesn't give users any clue what was going
on.

gst_harness_new_parse() calls gst_harness_add_parse() with a newly
created empty harness and the given pipeline description string, but
gst_harness_add_parse() does not have a way to propagate the error
back to the caller.  Since the function, gst_harness_add_parse(), is a
public API, it's not a good idea to change its signature.  This patch,
instead, makes the function to g_error() when it discovers any error.
With this change the same error prints:

	** (myelement-test:25345): ERROR **: Unable to create pipeline 'bin.( myelement )': no element "myelement"

The current implementation of gst_parse_launch_full() doesn't return
partially constructed pipeline when GST_PARSE_FLAG_FATAL_ERRORS is
specified, however, this patch also adds a check for it.

https://bugzilla.gnome.org/show_bug.cgi?id=781958
2017-05-04 19:48:33 +01:00
..
libcheck check: Fix macro check for OS X 2016-12-09 22:39:36 +05:30
.gitignore check: use private copy of check for libgstcheck 2009-08-06 17:27:12 +01:00
check.h docs: add GstHarness to documentation 2015-07-07 00:53:48 +01:00
gstbufferstraw.c Port gtk-doc comments to their equivalent markdown syntax 2017-01-27 16:36:38 -03:00
gstbufferstraw.h Fix FSF address 2012-11-03 20:44:48 +00:00
gstcheck.c Port gtk-doc comments to their equivalent markdown syntax 2017-01-27 16:36:38 -03:00
gstcheck.h check: Add API to filter g_warning/g_critical etc 2017-01-24 00:11:59 +00:00
gstconsistencychecker.c Port gtk-doc comments to their equivalent markdown syntax 2017-01-27 16:36:38 -03:00
gstconsistencychecker.h Fix FSF address 2012-11-03 20:44:48 +00:00
gstharness.c harness: Abort when failed to construct the specified pipeline 2017-05-04 19:48:33 +01:00
gstharness.h harness: Add event stress test functions with callback 2016-02-12 19:32:29 +00:00
gsttestclock.c Port gtk-doc comments to their equivalent markdown syntax 2017-01-27 16:36:38 -03:00
gsttestclock.h testclock: add crank method 2016-02-12 17:08:32 +00:00
Makefile.am check: Add API to filter g_warning/g_critical etc 2017-01-24 00:11:59 +00:00
meson.build libcheck: Update the compatibility code and checks 2016-12-09 15:31:01 +05:30