* tests/interactive/test-main.c (main): Allow more than two
authorNeil Roberts <neil@openedhand.com>
Mon, 10 Nov 2008 16:30:42 +0000 (16:30 +0000)
committerNeil Roberts <neil@openedhand.com>
Mon, 10 Nov 2008 16:30:42 +0000 (16:30 +0000)
arguments so that the remaining arguments can be passed to the
test. This is needed for test-behave for example which can take a
--path argument.

ChangeLog
tests/interactive/test-main.c

index 8a38a21..577ab4c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-11-10  Neil Roberts  <neil@linux.intel.com>
+
+       * tests/interactive/test-main.c (main): Allow more than two
+       arguments so that the remaining arguments can be passed to the
+       test. This is needed for test-behave for example which can take a
+       --path argument.
+
 2008-11-10  Emmanuele Bassi  <ebassi@linux.intel.com>
 
        * clutter/clutter-texture.c: Remove an unused function.
index 1724ede..2a0cd74 100644 (file)
@@ -12,7 +12,7 @@ main (int argc, char **argv)
   int (*unit_test_main) (int argc, char **argv);
   int ret;
 
-  if (argc != 2)
+  if (argc < 2)
     g_error ("Usage: %s unit_test", argv[0]);
   
   module = g_module_open (NULL, 0);