[Pkg-nagios-changes] [pkg-mod-gearman] 31/48: fix tests on freebsd9
Stig Sandbeck Mathisen
ssm at debian.org
Sun Nov 24 22:38:11 UTC 2013
This is an automated email from the git hooks/post-receive script.
ssm pushed a commit to branch master
in repository pkg-mod-gearman.
commit db1aa555d637248866f1d0d002c923beb32885b5
Author: Sven Nierlein <Sven.Nierlein at consol.de>
Date: Fri Nov 1 00:49:10 2013 +0100
fix tests on freebsd9
dlerror() returns Undefined symbol "_nss_cache_cycle_prevention_function" so just
clear any errors before loading the neb module since we are only interested in
errors related to our neb module.
---
t/05-neb.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/t/05-neb.c b/t/05-neb.c
index 30bd17c..05e6784 100644
--- a/t/05-neb.c
+++ b/t/05-neb.c
@@ -48,6 +48,7 @@ void check_neb(char * nebargs) {
ok((*module_version_ptr) == CURRENT_NEB_API_VERSION, "got module api version %i", CURRENT_NEB_API_VERSION);
/* init neb module */
+ dlerror();
init_func=(void *)dlsym(neb_handle,"nebmodule_init");
ok(init_func != NULL, "located nebmodule_init()");
err = dlerror(); if(err != NULL) { BAIL_OUT("cannot load module: %s\n", err ); }
@@ -55,9 +56,9 @@ void check_neb(char * nebargs) {
initfunc = init_func;
int result=(*initfunc)(NEBMODULE_NORMAL_LOAD, nebargs, neb_handle);
ok(result == 0, "run nebmodule_init() -> %d", result);
- err = dlerror(); if(err != NULL) { BAIL_OUT("cannot load module: %s\n", err ); }
/* deinit neb module */
+ dlerror();
deinit_func=(void *)dlsym(neb_handle,"nebmodule_deinit");
ok(deinit_func != NULL, "located nebmodule_deinit()");
err = dlerror(); if(err != NULL) { BAIL_OUT("cannot load module: %s\n", err ); }
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-mod-gearman
More information about the Pkg-nagios-changes
mailing list