[xiph-commits] r16123 - branches/theora-thusnelda/tests

giles at svn.xiph.org giles at svn.xiph.org
Sun Jun 14 03:09:50 PDT 2009


Author: giles
Date: 2009-06-14 03:09:50 -0700 (Sun, 14 Jun 2009)
New Revision: 16123

Modified:
   branches/theora-thusnelda/tests/noop.c
Log:
Test clearing an initialized th_info struct.

Modified: branches/theora-thusnelda/tests/noop.c
===================================================================
--- branches/theora-thusnelda/tests/noop.c	2009-06-14 09:49:21 UTC (rev 16122)
+++ branches/theora-thusnelda/tests/noop.c	2009-06-14 10:09:50 UTC (rev 16123)
@@ -20,6 +20,20 @@
 #include "tests.h"
 
 static int
+noop_test_info ()
+{
+  th_info ti;
+
+  INFO ("+ Initializing th_info struct");
+  th_info_init (&ti);
+
+  INFO ("+ Clearing empty th_info struct");
+  th_info_clear (&ti);
+
+  return 0;
+}
+
+static int
 noop_test_encode ()
 {
   th_info ti;
@@ -42,7 +56,7 @@
   if (te == NULL)
     FAIL("td_encode_alloc returned a null pointer");
 
-  INFO ("+ Clearing theora_info struct");
+  INFO ("+ Clearing th_info struct");
   th_info_clear (&ti);
 
   INFO ("+ Freeing encoder context");
@@ -64,6 +78,8 @@
 
 int main(int argc, char *argv[])
 {
+  noop_test_info ();
+
   noop_test_encode ();
 
   noop_test_comments ();



More information about the commits mailing list