more tests fixing
authorThomas Vander Stichele <thomas@apestaart.org>
Fri, 2 Jul 2004 13:54:59 +0000 (13:54 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Fri, 2 Jul 2004 13:54:59 +0000 (13:54 +0000)
Original commit message from CVS:
more tests fixing

ChangeLog
tests/old/testsuite/Makefile.am
tests/old/testsuite/caps/filtercaps.c
tests/old/testsuite/clock/clock1.c
tests/old/testsuite/dynparams/dparamstest.c
testsuite/Makefile.am
testsuite/caps/filtercaps.c
testsuite/clock/clock1.c
testsuite/dynparams/dparamstest.c

index 0eba8d0..4757f5d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 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>
+
        * testsuite/cleanup/cleanup1.c: (create_pipeline):
        * testsuite/cleanup/cleanup2.c: (create_pipeline):
        * testsuite/cleanup/cleanup4.c: (main):
index 6d6b0ef..0ba02ff 100644 (file)
@@ -13,14 +13,21 @@ else
 GST_DEBUG_DIRS = debug
 endif
 
-SUBDIRS = bins bytestream cleanup dynparams ghostpads \
-       caps plugin elements clock refcounting tags threads \
-       indexers debug $(GST_PARSE_DIRS) $(GST_DEBUG_DIRS) \
-       dlopen negotiation schedulers
-
-DIST_SUBDIRS = bins bytestream caps cleanup clock dynparams elements indexers \
-               plugin refcounting tags threads parse debug ghostpads \
-               dlopen negotiation schedulers
+SUBDIRS = \
+       bins bytestream caps cleanup clock \
+       $(GST_DEBUG_DIRS) \
+       dlopen dynparams \
+       elements ghostpads indexers negotiation \
+       $(GST_PARSE_DIRS) \
+       plugin refcounting schedulers tags threads
+
+DIST_SUBDIRS = \
+       bins bytestream caps cleanup clock \
+       debug \
+       dlopen dynparams \
+       elements ghostpads indexers negotiation \
+       parse \
+       plugin refcounting schedulers tags threads
 
 tests_pass = test_gst_init
 tests_fail = 
index 3711bf7..51466e5 100644 (file)
@@ -23,13 +23,17 @@ main (gint argc, gchar ** argv)
 {
   GstCaps *caps;
   GstElement *sink, *identity;
+  GstElement *pipeline;
 
   gst_init (&argc, &argv);
 
+  pipeline = gst_pipeline_new ("pipeline");
+  g_assert (pipeline);
   identity = gst_element_factory_make ("identity", NULL);
   g_assert (identity);
   sink = gst_element_factory_make ("fakesink", NULL);
   g_assert (sink);
+  gst_bin_add_many (GST_BIN (pipeline), identity, sink, NULL);
   gst_element_link_filtered (identity, sink,
       gst_caps_new_simple ("audio/x-raw-int", NULL));
   caps = gst_pad_get_caps (gst_element_get_pad (identity, "sink"));
index 33cf8c4..7aa9856 100644 (file)
@@ -40,8 +40,8 @@ main (int argc, char *argv[])
     return 1;
   }
 
-  gst_element_link_many (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));
   g_assert (clock != NULL);
index 2fd5838..3e82e89 100644 (file)
@@ -253,13 +253,8 @@ main (int argc, char *argv[])
   testelement = gst_element_factory_make ("dptest", "testelement");
   g_assert (testelement);
 
-  gst_element_link (src, testelement);
-  gst_element_link (testelement, sink);
-
-  gst_bin_add (GST_BIN (pipeline), src);
-  gst_bin_add (GST_BIN (pipeline), testelement);
-  gst_bin_add (GST_BIN (pipeline), sink);
-
+  gst_bin_add_many (GST_BIN (pipeline), src, testelement, sink, NULL);
+  gst_element_link_many (src, testelement, sink, NULL);
 
   g_object_set (G_OBJECT (src), "num_buffers", 1, NULL);
 
index 6d6b0ef..0ba02ff 100644 (file)
@@ -13,14 +13,21 @@ else
 GST_DEBUG_DIRS = debug
 endif
 
-SUBDIRS = bins bytestream cleanup dynparams ghostpads \
-       caps plugin elements clock refcounting tags threads \
-       indexers debug $(GST_PARSE_DIRS) $(GST_DEBUG_DIRS) \
-       dlopen negotiation schedulers
-
-DIST_SUBDIRS = bins bytestream caps cleanup clock dynparams elements indexers \
-               plugin refcounting tags threads parse debug ghostpads \
-               dlopen negotiation schedulers
+SUBDIRS = \
+       bins bytestream caps cleanup clock \
+       $(GST_DEBUG_DIRS) \
+       dlopen dynparams \
+       elements ghostpads indexers negotiation \
+       $(GST_PARSE_DIRS) \
+       plugin refcounting schedulers tags threads
+
+DIST_SUBDIRS = \
+       bins bytestream caps cleanup clock \
+       debug \
+       dlopen dynparams \
+       elements ghostpads indexers negotiation \
+       parse \
+       plugin refcounting schedulers tags threads
 
 tests_pass = test_gst_init
 tests_fail = 
index 3711bf7..51466e5 100644 (file)
@@ -23,13 +23,17 @@ main (gint argc, gchar ** argv)
 {
   GstCaps *caps;
   GstElement *sink, *identity;
+  GstElement *pipeline;
 
   gst_init (&argc, &argv);
 
+  pipeline = gst_pipeline_new ("pipeline");
+  g_assert (pipeline);
   identity = gst_element_factory_make ("identity", NULL);
   g_assert (identity);
   sink = gst_element_factory_make ("fakesink", NULL);
   g_assert (sink);
+  gst_bin_add_many (GST_BIN (pipeline), identity, sink, NULL);
   gst_element_link_filtered (identity, sink,
       gst_caps_new_simple ("audio/x-raw-int", NULL));
   caps = gst_pad_get_caps (gst_element_get_pad (identity, "sink"));
index 33cf8c4..7aa9856 100644 (file)
@@ -40,8 +40,8 @@ main (int argc, char *argv[])
     return 1;
   }
 
-  gst_element_link_many (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));
   g_assert (clock != NULL);
index 2fd5838..3e82e89 100644 (file)
@@ -253,13 +253,8 @@ main (int argc, char *argv[])
   testelement = gst_element_factory_make ("dptest", "testelement");
   g_assert (testelement);
 
-  gst_element_link (src, testelement);
-  gst_element_link (testelement, sink);
-
-  gst_bin_add (GST_BIN (pipeline), src);
-  gst_bin_add (GST_BIN (pipeline), testelement);
-  gst_bin_add (GST_BIN (pipeline), sink);
-
+  gst_bin_add_many (GST_BIN (pipeline), src, testelement, sink, NULL);
+  gst_element_link_many (src, testelement, sink, NULL);
 
   g_object_set (G_OBJECT (src), "num_buffers", 1, NULL);