mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-29 20:35:40 +00:00
check/Makefile.am: Enable more tests.
Original commit message from CVS: * check/Makefile.am: Enable more tests. * check/elements/fakesrc.c: (GST_START_TEST): Set element to NULL before disposing it.
This commit is contained in:
parent
7d720ecb63
commit
b697d9a00d
5 changed files with 40 additions and 8 deletions
|
@ -1,3 +1,11 @@
|
|||
2005-11-16 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* check/Makefile.am:
|
||||
Enable more tests.
|
||||
|
||||
* check/elements/fakesrc.c: (GST_START_TEST):
|
||||
Set element to NULL before disposing it.
|
||||
|
||||
2005-11-16 Andy Wingo <wingo@pobox.com>
|
||||
|
||||
* gst/net/Makefile.am:
|
||||
|
|
|
@ -85,10 +85,7 @@ net_gstnettimeprovider_LDADD = \
|
|||
|
||||
# valgrind testing
|
||||
# these just need valgrind fixing, period
|
||||
VALGRIND_TO_FIX = \
|
||||
gst/gstevent \
|
||||
gst-libs/controller \
|
||||
pipelines/simple_launch_lines
|
||||
VALGRIND_TO_FIX =
|
||||
|
||||
# these need fixing because the threads cause segfaults under valgrind
|
||||
TESTS_THREADED = \
|
||||
|
|
|
@ -88,6 +88,9 @@ GST_START_TEST (test_num_buffers)
|
|||
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
|
||||
g_list_free (buffers);
|
||||
|
||||
fail_unless (gst_element_set_state (src,
|
||||
GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
|
||||
|
||||
/* cleanup */
|
||||
cleanup_fakesrc (src);
|
||||
}
|
||||
|
@ -123,6 +126,9 @@ GST_START_TEST (test_sizetype_empty)
|
|||
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
|
||||
g_list_free (buffers);
|
||||
|
||||
fail_unless (gst_element_set_state (src,
|
||||
GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
|
||||
|
||||
/* cleanup */
|
||||
cleanup_fakesrc (src);
|
||||
}
|
||||
|
@ -159,6 +165,9 @@ GST_START_TEST (test_sizetype_fixed)
|
|||
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
|
||||
g_list_free (buffers);
|
||||
|
||||
fail_unless (gst_element_set_state (src,
|
||||
GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
|
||||
|
||||
/* cleanup */
|
||||
cleanup_fakesrc (src);
|
||||
}
|
||||
|
@ -197,6 +206,9 @@ GST_START_TEST (test_sizetype_random)
|
|||
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
|
||||
g_list_free (buffers);
|
||||
|
||||
fail_unless (gst_element_set_state (src,
|
||||
GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
|
||||
|
||||
/* cleanup */
|
||||
cleanup_fakesrc (src);
|
||||
}
|
||||
|
@ -222,6 +234,9 @@ GST_START_TEST (test_no_preroll)
|
|||
fail_unless (ret == GST_STATE_CHANGE_NO_PREROLL,
|
||||
"error going to paused the second time");
|
||||
|
||||
fail_unless (gst_element_set_state (src,
|
||||
GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
|
||||
|
||||
/* cleanup */
|
||||
cleanup_fakesrc (src);
|
||||
}
|
||||
|
|
|
@ -85,10 +85,7 @@ net_gstnettimeprovider_LDADD = \
|
|||
|
||||
# valgrind testing
|
||||
# these just need valgrind fixing, period
|
||||
VALGRIND_TO_FIX = \
|
||||
gst/gstevent \
|
||||
gst-libs/controller \
|
||||
pipelines/simple_launch_lines
|
||||
VALGRIND_TO_FIX =
|
||||
|
||||
# these need fixing because the threads cause segfaults under valgrind
|
||||
TESTS_THREADED = \
|
||||
|
|
|
@ -88,6 +88,9 @@ GST_START_TEST (test_num_buffers)
|
|||
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
|
||||
g_list_free (buffers);
|
||||
|
||||
fail_unless (gst_element_set_state (src,
|
||||
GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
|
||||
|
||||
/* cleanup */
|
||||
cleanup_fakesrc (src);
|
||||
}
|
||||
|
@ -123,6 +126,9 @@ GST_START_TEST (test_sizetype_empty)
|
|||
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
|
||||
g_list_free (buffers);
|
||||
|
||||
fail_unless (gst_element_set_state (src,
|
||||
GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
|
||||
|
||||
/* cleanup */
|
||||
cleanup_fakesrc (src);
|
||||
}
|
||||
|
@ -159,6 +165,9 @@ GST_START_TEST (test_sizetype_fixed)
|
|||
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
|
||||
g_list_free (buffers);
|
||||
|
||||
fail_unless (gst_element_set_state (src,
|
||||
GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
|
||||
|
||||
/* cleanup */
|
||||
cleanup_fakesrc (src);
|
||||
}
|
||||
|
@ -197,6 +206,9 @@ GST_START_TEST (test_sizetype_random)
|
|||
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
|
||||
g_list_free (buffers);
|
||||
|
||||
fail_unless (gst_element_set_state (src,
|
||||
GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
|
||||
|
||||
/* cleanup */
|
||||
cleanup_fakesrc (src);
|
||||
}
|
||||
|
@ -222,6 +234,9 @@ GST_START_TEST (test_no_preroll)
|
|||
fail_unless (ret == GST_STATE_CHANGE_NO_PREROLL,
|
||||
"error going to paused the second time");
|
||||
|
||||
fail_unless (gst_element_set_state (src,
|
||||
GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
|
||||
|
||||
/* cleanup */
|
||||
cleanup_fakesrc (src);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue