Updated test to have a comment explaining its purpose (very important this, especiall...
authorRichard Boulton <richard@tartarus.org>
Fri, 9 Mar 2001 12:29:51 +0000 (12:29 +0000)
committerRichard Boulton <richard@tartarus.org>
Fri, 9 Mar 2001 12:29:51 +0000 (12:29 +0000)
Original commit message from CVS:
Updated test to have a comment explaining its purpose (very important this,
especially for regression tests), and to actually test what I meant it to.

tests/old/testsuite/test_gst_init.c
testsuite/test_gst_init.c

index fd604e7..1749328 100644 (file)
@@ -1,7 +1,13 @@
 #include <gst/gst.h>
 
+/* This tests that gst_init() doesn't segfault when passed two NULLs as
+ * parameters, and that it doesn't fail if gst_init() happens to get called
+ * a second time. */
 int
 main (int argc, char *argv[])
 {
-  gst_init(&argc,&argv);
+  gst_init(NULL, NULL);
+  gst_init(&argc, &argv);
+
+  return 0;
 }
index fd604e7..1749328 100644 (file)
@@ -1,7 +1,13 @@
 #include <gst/gst.h>
 
+/* This tests that gst_init() doesn't segfault when passed two NULLs as
+ * parameters, and that it doesn't fail if gst_init() happens to get called
+ * a second time. */
 int
 main (int argc, char *argv[])
 {
-  gst_init(&argc,&argv);
+  gst_init(NULL, NULL);
+  gst_init(&argc, &argv);
+
+  return 0;
 }