From ca22c863746eababadedac5a25f47b1ae5780d20 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 19 Apr 2012 17:01:35 +0200 Subject: Add Photon Focus --- test/test-all.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/test-all.c') diff --git a/test/test-all.c b/test/test-all.c index 37af97d..8c672e8 100644 --- a/test/test-all.c +++ b/test/test-all.c @@ -169,7 +169,8 @@ int main(int argc, char *argv[]) g_test_add_func("/factory", test_factory); - gchar **types = uca_camera_get_types(); + gchar **types = NULL; + types = argc > 1 ? argv + 1 : uca_camera_get_types(); /* * paths and test_funcs MUST correspond! @@ -205,6 +206,9 @@ int main(int argc, char *argv[]) } gint result = g_test_run(); - g_strfreev(types); + + if (argc == 1) + g_strfreev(types); + return result; } -- cgit v1.2.3