Uhm...
authorWim Taymans <wim.taymans@gmail.com>
Sun, 14 Oct 2001 18:36:15 +0000 (18:36 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Sun, 14 Oct 2001 18:36:15 +0000 (18:36 +0000)
Original commit message from CVS:
Uhm...

tests/old/testsuite/bytestream/test1.c
testsuite/bytestream/test1.c

index 25a21cc2b9a1597b58da185c3c384a6966d6d918..0670849e84d4700c608817d65a5b91cc67235b4c 100644 (file)
@@ -21,7 +21,7 @@ typedef struct
 static GSList *params = NULL;
 
 static guint8 count;
-static guint8 iters;
+static guint iterations;
 static gboolean integrity_check = TRUE;
 static gboolean verbose = FALSE;
 static gboolean dump = FALSE;
@@ -169,7 +169,8 @@ main (int argc, char *argv[])
     usage (argv);
     return -1;
   }
-  iters = atoi (argv[++arg_walk]);
+  arg_walk++;
+  iterations = atoi (argv[arg_walk]);
 
   pipeline = gst_elementfactory_make ("pipeline", "pipeline");
   g_assert (pipeline);
@@ -199,7 +200,7 @@ main (int argc, char *argv[])
 
     integrity_check = param->integrity_check;
 
-    g_print ("\n\nrunning test %d:\n", testnum+1);
+    g_print ("\n\nrunning test %d (%d iterations):\n", testnum+1, iterations);
     desc = create_desc (param);
     g_print ("%s\n", desc);
     g_free (desc);
@@ -215,7 +216,7 @@ main (int argc, char *argv[])
     g_object_set (G_OBJECT (sink), "dump", dump,
                                   "silent", !verbose, NULL);
 
-    run_test (GST_BIN (pipeline), iters);
+    run_test (GST_BIN (pipeline), iterations);
 
     testnum++;
 
index 25a21cc2b9a1597b58da185c3c384a6966d6d918..0670849e84d4700c608817d65a5b91cc67235b4c 100644 (file)
@@ -21,7 +21,7 @@ typedef struct
 static GSList *params = NULL;
 
 static guint8 count;
-static guint8 iters;
+static guint iterations;
 static gboolean integrity_check = TRUE;
 static gboolean verbose = FALSE;
 static gboolean dump = FALSE;
@@ -169,7 +169,8 @@ main (int argc, char *argv[])
     usage (argv);
     return -1;
   }
-  iters = atoi (argv[++arg_walk]);
+  arg_walk++;
+  iterations = atoi (argv[arg_walk]);
 
   pipeline = gst_elementfactory_make ("pipeline", "pipeline");
   g_assert (pipeline);
@@ -199,7 +200,7 @@ main (int argc, char *argv[])
 
     integrity_check = param->integrity_check;
 
-    g_print ("\n\nrunning test %d:\n", testnum+1);
+    g_print ("\n\nrunning test %d (%d iterations):\n", testnum+1, iterations);
     desc = create_desc (param);
     g_print ("%s\n", desc);
     g_free (desc);
@@ -215,7 +216,7 @@ main (int argc, char *argv[])
     g_object_set (G_OBJECT (sink), "dump", dump,
                                   "silent", !verbose, NULL);
 
-    run_test (GST_BIN (pipeline), iters);
+    run_test (GST_BIN (pipeline), iterations);
 
     testnum++;