From e058cd4c5fcb0a37f24749221d5b854f82ef4703 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 29 Sep 2011 14:01:03 +0100 Subject: [PATCH] Pass the remaining args to the executed interactive unit We only support running one interactive test at a time; everything after the unit name is to be considered an argument to the actual unit. --- tests/interactive/test-main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/interactive/test-main.c b/tests/interactive/test-main.c index 10d032233..74bbcd023 100644 --- a/tests/interactive/test-main.c +++ b/tests/interactive/test-main.c @@ -195,7 +195,11 @@ main (int argc, char **argv) unit_test_main = func; - ret = unit_test_main (argc, argv); + ret = unit_test_main (n_unit_names, unit_names); + + g_free (unit_test); + + break; } g_free (unit_test);