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:
Wim Taymans 2005-11-16 18:09:47 +00:00
parent 7d720ecb63
commit b697d9a00d
5 changed files with 40 additions and 8 deletions

View file

@ -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:

View file

@ -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 = \

View file

@ -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);
}

View file

@ -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 = \

View file

@ -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);
}