diff options
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); } |