Skip to content

Commit

Permalink
Fixed tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeDP committed Jul 13, 2019
1 parent 84f4504 commit aec0389
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_modules.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
#include <stdlib.h>

static void logger(const self_t *self, const char *fmt, va_list args, const void *userdata) {
const char *name = NULL, *context = NULL;
char *name = NULL, *context = NULL;
if (module_get_name(self, &name) == MOD_OK &&
module_get_context(self, &context) == MOD_OK) {

printf("%s@%s:\t*", name, context);
vprintf(fmt, args);
}
free(name);
free(context);
}

void test_modules_ctx_set_logger_NULL_ctx(void **state) {
Expand Down

0 comments on commit aec0389

Please sign in to comment.