* 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.
This commit is contained in:
Neil Roberts 2008-11-10 16:30:42 +00:00
parent 12051380f7
commit 803182d5c9
2 changed files with 8 additions and 1 deletions

View File

@ -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> 2008-11-10 Emmanuele Bassi <ebassi@linux.intel.com>
* clutter/clutter-texture.c: Remove an unused function. * clutter/clutter-texture.c: Remove an unused function.

View File

@ -12,7 +12,7 @@ main (int argc, char **argv)
int (*unit_test_main) (int argc, char **argv); int (*unit_test_main) (int argc, char **argv);
int ret; int ret;
if (argc != 2) if (argc < 2)
g_error ("Usage: %s unit_test", argv[0]); g_error ("Usage: %s unit_test", argv[0]);
module = g_module_open (NULL, 0); module = g_module_open (NULL, 0);