From: pcarana Date: Tue, 20 Oct 2020 23:34:14 +0000 (-0500) Subject: Fix broken unit tests X-Git-Tag: v1.4.2^0 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=f8f97c489dceecda60f8cc7d70991c6695bc7e4e;p=thirdparty%2FFORT-validator.git Fix broken unit tests --- diff --git a/test/impersonator.c b/test/impersonator.c index 3e82f904..96fd8a51 100644 --- a/test/impersonator.c +++ b/test/impersonator.c @@ -49,6 +49,12 @@ reqs_errors_log_summary(void) /* Nothing here */ } +char const * +db_rrdp_uris_workspace_get(void) +{ + return NULL; +} + char const * config_get_tal(void) { diff --git a/test/rsync_test.c b/test/rsync_test.c index ff358428..ca5b61d1 100644 --- a/test/rsync_test.c +++ b/test/rsync_test.c @@ -2,6 +2,7 @@ #include #include +#include "common.c" #include "log.c" #include "impersonator.c" #include "str_token.c" diff --git a/test/tal_test.c b/test/tal_test.c index ad65c7c0..93f39d29 100644 --- a/test/tal_test.c +++ b/test/tal_test.c @@ -56,6 +56,17 @@ close_thread(pthread_t thread, char const *what) /* Nothing to close */ } +int +map_uri_to_local(char const *uri, char const *uri_prefix, char const *workspace, + char **result) +{ + /* These tests focus on global URIs, so set a dummy value */ + *result = strdup("dummy"); + if (*result == NULL) + return -ENOMEM; + return 0; +} + void fnstack_init(void) {