Added another testcase.
authorWim Taymans <wim.taymans@gmail.com>
Sun, 27 Jan 2002 19:24:23 +0000 (19:24 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Sun, 27 Jan 2002 19:24:23 +0000 (19:24 +0000)
Original commit message from CVS:
Added another testcase.

tests/old/testsuite/cleanup/Makefile.am
tests/old/testsuite/cleanup/cleanup5.c [new file with mode: 0644]
testsuite/cleanup/Makefile.am
testsuite/cleanup/cleanup5.c [new file with mode: 0644]

index 88d32dd..0665cb5 100644 (file)
@@ -1,4 +1,4 @@
-testprogs = cleanup1 cleanup2 cleanup3 cleanup4
+testprogs = cleanup1 cleanup2 cleanup3 cleanup4 cleanup5
 
 TESTS = $(testprogs)
 
@@ -13,3 +13,5 @@ cleanup3_LDADD = $(GST_LIBS)
 cleanup3_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
 cleanup4_LDADD = $(GST_LIBS) 
 cleanup4_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
+cleanup5_LDADD = $(GST_LIBS) 
+cleanup5_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
diff --git a/tests/old/testsuite/cleanup/cleanup5.c b/tests/old/testsuite/cleanup/cleanup5.c
new file mode 100644 (file)
index 0000000..8d9078b
--- /dev/null
@@ -0,0 +1,20 @@
+#include <gst/gst.h>
+
+int main(int argc,char *argv[]) 
+{
+  GstElement *bin, *decoder;
+
+  gst_init(&argc,&argv);
+
+  bin = gst_pipeline_new("pipeline");
+
+  while (TRUE)
+  {
+    decoder = gst_elementfactory_make("mpeg2dec","mpeg2dec");
+    if (!decoder) 
+      break;
+
+    gst_bin_add(GST_BIN(bin), decoder);
+    gst_bin_remove(GST_BIN(bin), decoder);
+  }
+}
index 88d32dd..0665cb5 100644 (file)
@@ -1,4 +1,4 @@
-testprogs = cleanup1 cleanup2 cleanup3 cleanup4
+testprogs = cleanup1 cleanup2 cleanup3 cleanup4 cleanup5
 
 TESTS = $(testprogs)
 
@@ -13,3 +13,5 @@ cleanup3_LDADD = $(GST_LIBS)
 cleanup3_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
 cleanup4_LDADD = $(GST_LIBS) 
 cleanup4_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
+cleanup5_LDADD = $(GST_LIBS) 
+cleanup5_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
diff --git a/testsuite/cleanup/cleanup5.c b/testsuite/cleanup/cleanup5.c
new file mode 100644 (file)
index 0000000..8d9078b
--- /dev/null
@@ -0,0 +1,20 @@
+#include <gst/gst.h>
+
+int main(int argc,char *argv[]) 
+{
+  GstElement *bin, *decoder;
+
+  gst_init(&argc,&argv);
+
+  bin = gst_pipeline_new("pipeline");
+
+  while (TRUE)
+  {
+    decoder = gst_elementfactory_make("mpeg2dec","mpeg2dec");
+    if (!decoder) 
+      break;
+
+    gst_bin_add(GST_BIN(bin), decoder);
+    gst_bin_remove(GST_BIN(bin), decoder);
+  }
+}