test: Makes the unit tests to work again

The unit tests was not working due to lack update. This patch adds
the necessary stuff to have it work again.
This commit is contained in:
Felipe Zimmerle
2013-12-04 18:15:20 -08:00
parent ad330a44bf
commit cc982ae42e
2 changed files with 11 additions and 4 deletions

View File

@@ -178,7 +178,8 @@ void msr_log_warn(modsec_rec *msr, const char *text, ...) {
va_end(ap);
}
const char *ap_get_remote_host(conn_rec *conn, void *dir_config, int type, int *str_is_ip) {
#define ap_get_remote_host(a, b, c, d) test_ap_get_remote_host(a, b, c, d)
const char *test_ap_get_remote_host(conn_rec *conn, void *dir_config, int type, int *str_is_ip) {
return "FAKE-REMOTE-HOST";
}