mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-05 14:02:26 +00:00
check/Makefile.am: have some tests be disabled for valgrinding
Original commit message from CVS: * check/Makefile.am: have some tests be disabled for valgrinding * check/elements/vorbisdec.c: (cleanup_vorbisdec), (GST_START_TEST): * ext/vorbis/vorbisdec.c: (vorbisdec_finalize): Fix A Leak. Chain To Parent Finalize.
This commit is contained in:
parent
7ff873d88b
commit
82da93b310
6 changed files with 30 additions and 3 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2005-09-19 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* check/Makefile.am:
|
||||||
|
have some tests be disabled for valgrinding
|
||||||
|
* check/elements/vorbisdec.c: (cleanup_vorbisdec),
|
||||||
|
(GST_START_TEST):
|
||||||
|
* ext/vorbis/vorbisdec.c: (vorbisdec_finalize):
|
||||||
|
Fix A Leak. Chain To Parent Finalize.
|
||||||
|
|
||||||
2005-09-19 Wim Taymans <wim@fluendo.com>
|
2005-09-19 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* examples/seeking/seek.c: (make_wav_pipeline), (main):
|
* examples/seeking/seek.c: (make_wav_pipeline), (main):
|
||||||
|
|
|
@ -34,6 +34,11 @@ check_PROGRAMS = \
|
||||||
pipelines/simple_launch_lines \
|
pipelines/simple_launch_lines \
|
||||||
$(check_vorbis)
|
$(check_vorbis)
|
||||||
|
|
||||||
|
# tests to fix leaks in
|
||||||
|
VALGRIND_TO_FIX = \
|
||||||
|
elements/audioresample \
|
||||||
|
pipelines/simple_launch_lines
|
||||||
|
|
||||||
# these tests don't even pass
|
# these tests don't even pass
|
||||||
# generic/states: elements need state fixin' before this can be added
|
# generic/states: elements need state fixin' before this can be added
|
||||||
noinst_PROGRAMS = \
|
noinst_PROGRAMS = \
|
||||||
|
@ -43,6 +48,6 @@ AM_CFLAGS = $(GST_OBJ_CFLAGS) $(GST_CHECK_CFLAGS) $(CHECK_CFLAGS)
|
||||||
LDADD = $(GST_OBJ_LIBS) $(GST_CHECK_LIBS) $(CHECK_LIBS)
|
LDADD = $(GST_OBJ_LIBS) $(GST_CHECK_LIBS) $(CHECK_LIBS)
|
||||||
|
|
||||||
# valgrind testing
|
# valgrind testing
|
||||||
VALGRIND_TESTS_DISABLE =
|
VALGRIND_TESTS_DISABLE = $(VALGRIND_TO_FIX)
|
||||||
|
|
||||||
SUPPRESSIONS = $(top_srcdir)/common/gst.supp
|
SUPPRESSIONS = $(top_srcdir)/common/gst.supp
|
||||||
|
|
|
@ -82,6 +82,7 @@ void
|
||||||
cleanup_vorbisdec (GstElement * vorbisdec)
|
cleanup_vorbisdec (GstElement * vorbisdec)
|
||||||
{
|
{
|
||||||
GST_DEBUG ("cleanup_vorbisdec");
|
GST_DEBUG ("cleanup_vorbisdec");
|
||||||
|
gst_element_set_state (vorbisdec, GST_STATE_NULL);
|
||||||
|
|
||||||
gst_check_teardown_src_pad (vorbisdec);
|
gst_check_teardown_src_pad (vorbisdec);
|
||||||
gst_check_teardown_sink_pad (vorbisdec);
|
gst_check_teardown_sink_pad (vorbisdec);
|
||||||
|
@ -213,11 +214,13 @@ GST_START_TEST (test_identification_header)
|
||||||
1);
|
1);
|
||||||
fail_unless (gst_tag_list_get_string (tag_list, GST_TAG_ARTIST, &artist));
|
fail_unless (gst_tag_list_get_string (tag_list, GST_TAG_ARTIST, &artist));
|
||||||
fail_unless_equals_string (artist, "me");
|
fail_unless_equals_string (artist, "me");
|
||||||
|
g_free (artist);
|
||||||
fail_unless_equals_int (gst_tag_list_get_tag_size (tag_list, "album"), 0);
|
fail_unless_equals_int (gst_tag_list_get_tag_size (tag_list, "album"), 0);
|
||||||
gst_tag_list_free (tag_list);
|
gst_tag_list_free (tag_list);
|
||||||
gst_message_unref (message);
|
gst_message_unref (message);
|
||||||
|
|
||||||
/* cleanup */
|
/* cleanup */
|
||||||
|
gst_bus_set_flushing (bus, TRUE);
|
||||||
gst_element_set_bus (vorbisdec, NULL);
|
gst_element_set_bus (vorbisdec, NULL);
|
||||||
gst_object_unref (GST_OBJECT (bus));
|
gst_object_unref (GST_OBJECT (bus));
|
||||||
cleanup_vorbisdec (vorbisdec);
|
cleanup_vorbisdec (vorbisdec);
|
||||||
|
|
|
@ -192,6 +192,8 @@ vorbisdec_finalize (GObject * object)
|
||||||
vorbis_dsp_clear (&vd->vd);
|
vorbis_dsp_clear (&vd->vd);
|
||||||
vorbis_comment_clear (&vd->vc);
|
vorbis_comment_clear (&vd->vc);
|
||||||
vorbis_info_clear (&vd->vi);
|
vorbis_info_clear (&vd->vi);
|
||||||
|
|
||||||
|
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
|
|
@ -34,6 +34,11 @@ check_PROGRAMS = \
|
||||||
pipelines/simple_launch_lines \
|
pipelines/simple_launch_lines \
|
||||||
$(check_vorbis)
|
$(check_vorbis)
|
||||||
|
|
||||||
|
# tests to fix leaks in
|
||||||
|
VALGRIND_TO_FIX = \
|
||||||
|
elements/audioresample \
|
||||||
|
pipelines/simple_launch_lines
|
||||||
|
|
||||||
# these tests don't even pass
|
# these tests don't even pass
|
||||||
# generic/states: elements need state fixin' before this can be added
|
# generic/states: elements need state fixin' before this can be added
|
||||||
noinst_PROGRAMS = \
|
noinst_PROGRAMS = \
|
||||||
|
@ -43,6 +48,6 @@ AM_CFLAGS = $(GST_OBJ_CFLAGS) $(GST_CHECK_CFLAGS) $(CHECK_CFLAGS)
|
||||||
LDADD = $(GST_OBJ_LIBS) $(GST_CHECK_LIBS) $(CHECK_LIBS)
|
LDADD = $(GST_OBJ_LIBS) $(GST_CHECK_LIBS) $(CHECK_LIBS)
|
||||||
|
|
||||||
# valgrind testing
|
# valgrind testing
|
||||||
VALGRIND_TESTS_DISABLE =
|
VALGRIND_TESTS_DISABLE = $(VALGRIND_TO_FIX)
|
||||||
|
|
||||||
SUPPRESSIONS = $(top_srcdir)/common/gst.supp
|
SUPPRESSIONS = $(top_srcdir)/common/gst.supp
|
||||||
|
|
|
@ -82,6 +82,7 @@ void
|
||||||
cleanup_vorbisdec (GstElement * vorbisdec)
|
cleanup_vorbisdec (GstElement * vorbisdec)
|
||||||
{
|
{
|
||||||
GST_DEBUG ("cleanup_vorbisdec");
|
GST_DEBUG ("cleanup_vorbisdec");
|
||||||
|
gst_element_set_state (vorbisdec, GST_STATE_NULL);
|
||||||
|
|
||||||
gst_check_teardown_src_pad (vorbisdec);
|
gst_check_teardown_src_pad (vorbisdec);
|
||||||
gst_check_teardown_sink_pad (vorbisdec);
|
gst_check_teardown_sink_pad (vorbisdec);
|
||||||
|
@ -213,11 +214,13 @@ GST_START_TEST (test_identification_header)
|
||||||
1);
|
1);
|
||||||
fail_unless (gst_tag_list_get_string (tag_list, GST_TAG_ARTIST, &artist));
|
fail_unless (gst_tag_list_get_string (tag_list, GST_TAG_ARTIST, &artist));
|
||||||
fail_unless_equals_string (artist, "me");
|
fail_unless_equals_string (artist, "me");
|
||||||
|
g_free (artist);
|
||||||
fail_unless_equals_int (gst_tag_list_get_tag_size (tag_list, "album"), 0);
|
fail_unless_equals_int (gst_tag_list_get_tag_size (tag_list, "album"), 0);
|
||||||
gst_tag_list_free (tag_list);
|
gst_tag_list_free (tag_list);
|
||||||
gst_message_unref (message);
|
gst_message_unref (message);
|
||||||
|
|
||||||
/* cleanup */
|
/* cleanup */
|
||||||
|
gst_bus_set_flushing (bus, TRUE);
|
||||||
gst_element_set_bus (vorbisdec, NULL);
|
gst_element_set_bus (vorbisdec, NULL);
|
||||||
gst_object_unref (GST_OBJECT (bus));
|
gst_object_unref (GST_OBJECT (bus));
|
||||||
cleanup_vorbisdec (vorbisdec);
|
cleanup_vorbisdec (vorbisdec);
|
||||||
|
|
Loading…
Reference in a new issue