diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2017-06-03 11:34:23 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2017-06-03 11:35:21 +0200 |
commit | 033b9cf60efc2d53ffbcaab9dfc4b837cd4010a9 (patch) | |
tree | 22398a5ef391feca8ccfadc31df9cc7bd7bc41b9 /tests | |
parent | 03e85f9b8b8338c69ad8a4eef2f78abcb3bd9711 (diff) | |
download | libgphoto2-033b9cf60efc2d53ffbcaab9dfc4b837cd4010a9.tar.gz |
also use gp_log_remove_func, to test
https://github.com/gphoto/libgphoto2/pull/171
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-filesys.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test-filesys.c b/tests/test-filesys.c index d3655f565..a420c0c23 100644 --- a/tests/test-filesys.c +++ b/tests/test-filesys.c @@ -148,6 +148,7 @@ main () const char *name; char *foldername; GPContext *context; + int logid; #ifdef HAVE_MCHECK_H mtrace(); @@ -155,7 +156,7 @@ main () CHECK (gp_list_new(&list)); - gp_log_add_func (GP_LOG_DEBUG, log_func, NULL); + logid = gp_log_add_func (GP_LOG_DEBUG, log_func, NULL); context = gp_context_new (); gp_context_set_error_func (context, error_func, NULL); @@ -291,6 +292,7 @@ main () #ifdef HAVE_MCHECK_H muntrace(); #endif + gp_log_remove_func (logid); return (0); } |