[icinga-checkins] icinga.org: icinga-core/mfriedrich/core: fix tests in t-tap

git at icinga.org git at icinga.org
Sun Mar 10 20:48:55 CET 2013


Module: icinga-core
Branch: mfriedrich/core
Commit: b72908dcc59c9fbded626385d1897ff77b89d973
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=b72908dcc59c9fbded626385d1897ff77b89d973

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Sun Mar 10 20:37:47 2013 +0100

fix tests in t-tap

---

 t-tap/test_icinga_config.c |    3 +++
 t-tap/test_timeperiods.c   |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/t-tap/test_icinga_config.c b/t-tap/test_icinga_config.c
index 733497a..5c1fc53 100644
--- a/t-tap/test_icinga_config.c
+++ b/t-tap/test_icinga_config.c
@@ -70,6 +70,7 @@ command         *ochp_command_ptr = NULL;
 
 char            *illegal_object_chars = NULL;
 char            *illegal_output_chars = NULL;
+char           illegal_output_char_map[] = CHAR_MAP_INIT(0);
 
 int             use_regexp_matches = FALSE;
 int             use_true_regexp_matching = FALSE;
@@ -294,6 +295,8 @@ int log_debug_info(int level, int verbosity, const char *fmt, ...) {
 	/* vprintf( fmt, ap ); */
 	va_end(ap);
 }
+int close_log_file(void) {}
+int chown_debug_log(uid_t uid, gid_t gid) {}
 
 int neb_free_callback_list(void) {}
 void broker_program_status(int type, int flags, int attr, struct timeval *timestamp) {}
diff --git a/t-tap/test_timeperiods.c b/t-tap/test_timeperiods.c
index 30da034..cc19506 100644
--- a/t-tap/test_timeperiods.c
+++ b/t-tap/test_timeperiods.c
@@ -73,6 +73,7 @@ command         *ochp_command_ptr = NULL;
 
 char            *illegal_object_chars = NULL;
 char            *illegal_output_chars = NULL;
+char		illegal_output_char_map[] = CHAR_MAP_INIT(0);
 
 int             use_regexp_matches = FALSE;
 int             use_true_regexp_matching = FALSE;
@@ -291,6 +292,8 @@ int my_sendall(int s, char *buf, int *len, int timeout) {}
 void free_comment_data(void) {}
 int write_to_log(char *buffer, unsigned long data_type, time_t *timestamp) {}
 int log_debug_info(int level, int verbosity, const char *fmt, ...) {}
+int close_log_file(void) {}
+int chown_debug_log(uid_t uid, gid_t gid) {}
 
 int neb_free_callback_list(void) {}
 void broker_program_status(int type, int flags, int attr, struct timeval *timestamp) {}





More information about the icinga-checkins mailing list