[Pkg-nagios-changes] [SCM] Debian packaging for mod gearman. branch, master, updated. debian/1.0.3-1-28-ga8ba0c2

Sven Nierlein sven at nierlein.org
Fri May 20 10:21:09 UTC 2011


The following commit has been merged in the master branch:
commit d8a63d56ef6936da912c16e2fc313f763678a08f
Author: Sven Nierlein <sven at nierlein.org>
Date:   Mon Apr 18 11:20:42 2011 +0200

    fixed tests

diff --git a/common/utils.c b/common/utils.c
index 48e9542..ad764ae 100644
--- a/common/utils.c
+++ b/common/utils.c
@@ -872,7 +872,8 @@ int read_keyfile(mod_gm_opt_t *opt) {
         free(opt->crypt_key);
     opt->crypt_key = malloc(GM_BUFFERSIZE);
 
-    fgets(opt->crypt_key, 33, fp);
+    if(!fgets(opt->crypt_key, 33, fp))
+        return(GM_ERROR);
     fclose(fp);
     rtrim(opt->crypt_key);
 
diff --git a/t/01-utils.c b/t/01-utils.c
index e018a26..1a11483 100644
--- a/t/01-utils.c
+++ b/t/01-utils.c
@@ -152,3 +152,9 @@ int main(void) {
 
     return exit_status();
 }
+
+/* core log wrapper */
+void write_core_log(char *data) {
+    printf("core logger is not available for tests: %s", data);
+    return;
+}
diff --git a/t/02-full.c b/t/02-full.c
index dc8f36d..66fe76a 100644
--- a/t/02-full.c
+++ b/t/02-full.c
@@ -248,3 +248,9 @@ int main(void) {
     endskip;
     return exit_status();
 }
+
+/* core log wrapper */
+void write_core_log(char *data) {
+    printf("core logger is not available for tests: %s", data);
+    return;
+}
diff --git a/t/03-exec_checks.c b/t/03-exec_checks.c
index e7260ff..73c8e3d 100644
--- a/t/03-exec_checks.c
+++ b/t/03-exec_checks.c
@@ -222,3 +222,9 @@ int main(void) {
 
     return exit_status();
 }
+
+/* core log wrapper */
+void write_core_log(char *data) {
+    printf("core logger is not available for tests: %s", data);
+    return;
+}

-- 
Debian packaging for mod gearman.



More information about the Pkg-nagios-changes mailing list