diff options
author | Hans Ulrich Niedermann <gp@n-dimensional.de> | 2006-10-17 09:52:44 +0000 |
---|---|---|
committer | Hans Ulrich Niedermann <gp@n-dimensional.de> | 2006-10-17 09:52:44 +0000 |
commit | ae18c4917a270c2b181909cdbd478b0c7609ef88 (patch) | |
tree | b2f57b6e7b88e5f2640b6b549a0c3d038d3086fd /tests | |
parent | c3801e22f1a9e5fc2ab1f3c499db534a9ea13657 (diff) | |
download | libgphoto2-ae18c4917a270c2b181909cdbd478b0c7609ef88.tar.gz |
print camlibs directory used
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9358 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-camera-list.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test-camera-list.c b/tests/test-camera-list.c index f2d28c5d8..3c3a8f2d1 100644 --- a/tests/test-camera-list.c +++ b/tests/test-camera-list.c @@ -200,7 +200,14 @@ main (int argc, char *argv[]) printf("gp_abilities_list_count error: %d\n", count); return(1); } else if (count == 0) { - printf("no camera drivers (camlibs) found in camlib dir\n"); + /* Copied from gphoto2-abilities-list.c gp_abilities_list_load() */ + const char *camlib_env = getenv(CAMLIBDIR_ENV); + const char *camlibs = (camlib_env != NULL)?camlib_env:CAMLIBS; + + printf("no camera drivers (camlibs) found in camlib dir:\n" + " CAMLIBS=\`%s', default=\'%s', used=%s\n", + camlib_env?camlib_env:"(null)", CAMLIBS, + (camlib_env!=NULL)?"CAMLIBS":"default"); return(1); } |