summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2017-06-03 17:50:04 +0200
committerMarcus Meissner <marcus@jet.franken.de>2017-06-03 17:50:04 +0200
commit29b16546b603473e36db20ceda09ad84bb3cefa8 (patch)
tree0afbefa6aa3a66df28a0ca7cf5ef57a0656fa4c0 /tests
parent81b4a87770d9f4e8da8ad5584b5ca03375242bdd (diff)
downloadlibgphoto2-29b16546b603473e36db20ceda09ad84bb3cefa8.tar.gz
add log_remove func too
Diffstat (limited to 'tests')
-rw-r--r--tests/test-camera-list.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test-camera-list.c b/tests/test-camera-list.c
index 619f26b73..6a21e86f9 100644
--- a/tests/test-camera-list.c
+++ b/tests/test-camera-list.c
@@ -184,13 +184,13 @@ main (int argc, char *argv[])
int count;
const char *fmt_str = NULL;
char lastmodel[200];
+ int logid = -1;
parse_command_line (argc, argv);
if (do_debug) {
gettimeofday (&glob_tv_zero, NULL);
- CHECK (gp_log_add_func (GP_LOG_ALL, debug_func, NULL));
-
+ CHECK (logid = gp_log_add_func (GP_LOG_ALL, debug_func, NULL));
gp_log (GP_LOG_DEBUG, "main", "test-camera-list start");
}
@@ -309,6 +309,7 @@ main (int argc, char *argv[])
}
CHECK (gp_abilities_list_free (al));
+ gp_log_remove_func (logid);
return (0);
}