Skip to content

Commit

Permalink
also use gp_log_remove_func, to test
Browse files Browse the repository at this point in the history
  • Loading branch information
msmeissn committed Jun 3, 2017
1 parent 03e85f9 commit 033b9cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test-filesys.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,15 @@ main ()
const char *name;
char *foldername;
GPContext *context;
int logid;

#ifdef HAVE_MCHECK_H
mtrace();
#endif

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);

Expand Down Expand Up @@ -291,6 +292,7 @@ main ()
#ifdef HAVE_MCHECK_H
muntrace();
#endif
gp_log_remove_func (logid);

return (0);
}
Expand Down

0 comments on commit 033b9cf

Please sign in to comment.