check: Add API to filter g_warning/g_critical etc
authorStian Selnes <stian@pexip.com>
Tue, 24 May 2016 12:57:54 +0000 (14:57 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 24 Jan 2017 00:11:59 +0000 (00:11 +0000)
commit0c36e5766dde198a8015e7f04306838407dc8a86
tree900b47925fe1f605de0bc3f1603723335eb48db3
parenta533b6c2f91aa83ff0a7ef2e1a58ed64bb683066
check: Add API to filter g_warning/g_critical etc

New API functions to filter log messages before they are processed by
GstCheck. This can be used to discard specific messages that are
accepted by the test or to add callbacks that test specific messages.

Default bevavior when no callback is given to a filter is to discard the
message, because it does not makes sense to have a filter with no
callback which does not discard; that would be a noop.

Discarded messages will in addition to bypass the GstCheck handling also
return to GLib that the message is not fatal if it occurs.

https://bugzilla.gnome.org/show_bug.cgi?id=773091
libs/gst/check/Makefile.am
libs/gst/check/gstcheck.c
libs/gst/check/gstcheck.h