[clutter] Pass the remaining args to the executed interactive unit



commit e058cd4c5fcb0a37f24749221d5b854f82ef4703
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Thu Sep 29 14:01:03 2011 +0100

    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 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/tests/interactive/test-main.c b/tests/interactive/test-main.c
index 10d0322..74bbcd0 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]