From 803182d5c97fbb7a8c3f25f6230d43efeafd199c Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Mon, 10 Nov 2008 16:30:42 +0000 Subject: [PATCH] * 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. --- ChangeLog | 7 +++++++ tests/interactive/test-main.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8a38a21ab..577ab4ce5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-11-10 Neil Roberts + + * 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 * clutter/clutter-texture.c: Remove an unused function. diff --git a/tests/interactive/test-main.c b/tests/interactive/test-main.c index 1724ededa..2a0cd74a5 100644 --- a/tests/interactive/test-main.c +++ b/tests/interactive/test-main.c @@ -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);