[icinga-checkins] icinga.org: icinga-core/dev/core: fix test_checks in t-tap, strange sigsegv all the way ...

git at icinga.org git at icinga.org
Thu Apr 19 22:32:23 CEST 2012

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

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Mon Feb 27 18:01:16 2012 +0100

fix test_checks in t-tap, strange sigsegv all the way ...

passing a checkresult from services straight to a host
without checking that the svcdesc is null'ed leads to
rather strange behaviour. furthermore, using calloc
instead of malloc does not prevent us from initializing
all the important members which reach the inner core
functionality already set - we shouldn't fail on the
tests just because we don't know how to set variables.

refs #1192


 t-tap/test_checks.c   |  167 +++++++++++++++++++++++++++++-------------------
 t-tap/test_commands.c |    3 +-
 t-tap/test_downtime.c |    4 +-
 3 files changed, 105 insertions(+), 69 deletions(-)

Diff:   https://git.icinga.org/?p=icinga-core.git;a=commitdiff;h=7e57f30347ec3ea9e5fa46344e2a2f88289f0d47

More information about the icinga-checkins mailing list