summaryrefslogtreecommitdiffstats
path: root/test/test-all.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-04-19 17:01:35 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-04-19 17:02:12 +0200
commitca22c863746eababadedac5a25f47b1ae5780d20 (patch)
treed8ec15c38a104a1d09755c8517a75087b825fee2 /test/test-all.c
parent8abab6618860f9d8688a4653de258c8673bfc662 (diff)
downloadlibuca-ca22c863746eababadedac5a25f47b1ae5780d20.tar.gz
libuca-ca22c863746eababadedac5a25f47b1ae5780d20.tar.bz2
libuca-ca22c863746eababadedac5a25f47b1ae5780d20.tar.xz
libuca-ca22c863746eababadedac5a25f47b1ae5780d20.zip
Add Photon Focus
Diffstat (limited to 'test/test-all.c')
-rw-r--r--test/test-all.c8
1 files changed, 6 insertions, 2 deletions
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;
}