more tests fixing

Original commit message from CVS:
more tests fixing
This commit is contained in:
Thomas Vander Stichele 2004-07-02 13:54:59 +00:00
parent b44d2194c8
commit 11243f20be
9 changed files with 50 additions and 30 deletions

View file

@ -1,3 +1,11 @@
2004-07-02 Thomas Vander Stichele <thomas at apestaart dot org>
* testsuite/Makefile.am:
* testsuite/caps/filtercaps.c: (main):
* testsuite/clock/clock1.c: (main):
* testsuite/dynparams/dparamstest.c: (gst_dptest_chain), (main):
fix some more tests
2004-07-02 Thomas Vander Stichele <thomas at apestaart dot org> 2004-07-02 Thomas Vander Stichele <thomas at apestaart dot org>
* testsuite/cleanup/cleanup1.c: (create_pipeline): * testsuite/cleanup/cleanup1.c: (create_pipeline):

View file

@ -13,14 +13,21 @@ else
GST_DEBUG_DIRS = debug GST_DEBUG_DIRS = debug
endif endif
SUBDIRS = bins bytestream cleanup dynparams ghostpads \ SUBDIRS = \
caps plugin elements clock refcounting tags threads \ bins bytestream caps cleanup clock \
indexers debug $(GST_PARSE_DIRS) $(GST_DEBUG_DIRS) \ $(GST_DEBUG_DIRS) \
dlopen negotiation schedulers dlopen dynparams \
elements ghostpads indexers negotiation \
$(GST_PARSE_DIRS) \
plugin refcounting schedulers tags threads
DIST_SUBDIRS = bins bytestream caps cleanup clock dynparams elements indexers \ DIST_SUBDIRS = \
plugin refcounting tags threads parse debug ghostpads \ bins bytestream caps cleanup clock \
dlopen negotiation schedulers debug \
dlopen dynparams \
elements ghostpads indexers negotiation \
parse \
plugin refcounting schedulers tags threads
tests_pass = test_gst_init tests_pass = test_gst_init
tests_fail = tests_fail =

View file

@ -23,13 +23,17 @@ main (gint argc, gchar ** argv)
{ {
GstCaps *caps; GstCaps *caps;
GstElement *sink, *identity; GstElement *sink, *identity;
GstElement *pipeline;
gst_init (&argc, &argv); gst_init (&argc, &argv);
pipeline = gst_pipeline_new ("pipeline");
g_assert (pipeline);
identity = gst_element_factory_make ("identity", NULL); identity = gst_element_factory_make ("identity", NULL);
g_assert (identity); g_assert (identity);
sink = gst_element_factory_make ("fakesink", NULL); sink = gst_element_factory_make ("fakesink", NULL);
g_assert (sink); g_assert (sink);
gst_bin_add_many (GST_BIN (pipeline), identity, sink, NULL);
gst_element_link_filtered (identity, sink, gst_element_link_filtered (identity, sink,
gst_caps_new_simple ("audio/x-raw-int", NULL)); gst_caps_new_simple ("audio/x-raw-int", NULL));
caps = gst_pad_get_caps (gst_element_get_pad (identity, "sink")); caps = gst_pad_get_caps (gst_element_get_pad (identity, "sink"));

View file

@ -40,8 +40,8 @@ main (int argc, char *argv[])
return 1; return 1;
} }
gst_element_link_many (src, id, sink, NULL);
gst_bin_add_many (GST_BIN (pipeline), src, id, sink, NULL); gst_bin_add_many (GST_BIN (pipeline), src, id, sink, NULL);
gst_element_link_many (src, id, sink, NULL);
clock = gst_bin_get_clock (GST_BIN (pipeline)); clock = gst_bin_get_clock (GST_BIN (pipeline));
g_assert (clock != NULL); g_assert (clock != NULL);

View file

@ -253,13 +253,8 @@ main (int argc, char *argv[])
testelement = gst_element_factory_make ("dptest", "testelement"); testelement = gst_element_factory_make ("dptest", "testelement");
g_assert (testelement); g_assert (testelement);
gst_element_link (src, testelement); gst_bin_add_many (GST_BIN (pipeline), src, testelement, sink, NULL);
gst_element_link (testelement, sink); gst_element_link_many (src, testelement, sink, NULL);
gst_bin_add (GST_BIN (pipeline), src);
gst_bin_add (GST_BIN (pipeline), testelement);
gst_bin_add (GST_BIN (pipeline), sink);
g_object_set (G_OBJECT (src), "num_buffers", 1, NULL); g_object_set (G_OBJECT (src), "num_buffers", 1, NULL);

View file

@ -13,14 +13,21 @@ else
GST_DEBUG_DIRS = debug GST_DEBUG_DIRS = debug
endif endif
SUBDIRS = bins bytestream cleanup dynparams ghostpads \ SUBDIRS = \
caps plugin elements clock refcounting tags threads \ bins bytestream caps cleanup clock \
indexers debug $(GST_PARSE_DIRS) $(GST_DEBUG_DIRS) \ $(GST_DEBUG_DIRS) \
dlopen negotiation schedulers dlopen dynparams \
elements ghostpads indexers negotiation \
$(GST_PARSE_DIRS) \
plugin refcounting schedulers tags threads
DIST_SUBDIRS = bins bytestream caps cleanup clock dynparams elements indexers \ DIST_SUBDIRS = \
plugin refcounting tags threads parse debug ghostpads \ bins bytestream caps cleanup clock \
dlopen negotiation schedulers debug \
dlopen dynparams \
elements ghostpads indexers negotiation \
parse \
plugin refcounting schedulers tags threads
tests_pass = test_gst_init tests_pass = test_gst_init
tests_fail = tests_fail =

View file

@ -23,13 +23,17 @@ main (gint argc, gchar ** argv)
{ {
GstCaps *caps; GstCaps *caps;
GstElement *sink, *identity; GstElement *sink, *identity;
GstElement *pipeline;
gst_init (&argc, &argv); gst_init (&argc, &argv);
pipeline = gst_pipeline_new ("pipeline");
g_assert (pipeline);
identity = gst_element_factory_make ("identity", NULL); identity = gst_element_factory_make ("identity", NULL);
g_assert (identity); g_assert (identity);
sink = gst_element_factory_make ("fakesink", NULL); sink = gst_element_factory_make ("fakesink", NULL);
g_assert (sink); g_assert (sink);
gst_bin_add_many (GST_BIN (pipeline), identity, sink, NULL);
gst_element_link_filtered (identity, sink, gst_element_link_filtered (identity, sink,
gst_caps_new_simple ("audio/x-raw-int", NULL)); gst_caps_new_simple ("audio/x-raw-int", NULL));
caps = gst_pad_get_caps (gst_element_get_pad (identity, "sink")); caps = gst_pad_get_caps (gst_element_get_pad (identity, "sink"));

View file

@ -40,8 +40,8 @@ main (int argc, char *argv[])
return 1; return 1;
} }
gst_element_link_many (src, id, sink, NULL);
gst_bin_add_many (GST_BIN (pipeline), src, id, sink, NULL); gst_bin_add_many (GST_BIN (pipeline), src, id, sink, NULL);
gst_element_link_many (src, id, sink, NULL);
clock = gst_bin_get_clock (GST_BIN (pipeline)); clock = gst_bin_get_clock (GST_BIN (pipeline));
g_assert (clock != NULL); g_assert (clock != NULL);

View file

@ -253,13 +253,8 @@ main (int argc, char *argv[])
testelement = gst_element_factory_make ("dptest", "testelement"); testelement = gst_element_factory_make ("dptest", "testelement");
g_assert (testelement); g_assert (testelement);
gst_element_link (src, testelement); gst_bin_add_many (GST_BIN (pipeline), src, testelement, sink, NULL);
gst_element_link (testelement, sink); gst_element_link_many (src, testelement, sink, NULL);
gst_bin_add (GST_BIN (pipeline), src);
gst_bin_add (GST_BIN (pipeline), testelement);
gst_bin_add (GST_BIN (pipeline), sink);
g_object_set (G_OBJECT (src), "num_buffers", 1, NULL); g_object_set (G_OBJECT (src), "num_buffers", 1, NULL);