[icinga-checkins] icinga.org: icinga-core/r1.2: t-tap: Show diag if failure for test_events ( Ton Voon)

git at icinga.org git at icinga.org
Tue Nov 9 08:24:12 CET 2010


Module: icinga-core
Branch: r1.2
Commit: 914b174da776c03159866cac00e4e4d42fb416c6
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=914b174da776c03159866cac00e4e4d42fb416c6

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Mon Oct 25 15:19:14 2010 +0200

t-tap: Show diag if failure for test_events (Ton Voon)

---

 t-tap/test_events.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/t-tap/test_events.c b/t-tap/test_events.c
index e35f239..360e18e 100644
--- a/t-tap/test_events.c
+++ b/t-tap/test_events.c
@@ -310,7 +310,7 @@ main (int argc, char **argv)
 	setup_events_with_host(now);
 	event_execution_loop();
 
-	ok(host1->last_check == now,  "host1 was checked" );
+	ok(host1->last_check == now,  "host1 was checked" ) || diag("Last check: %d, Now: %d", host1->last_check, now);
 	ok(svc3->last_check == 0, "svc3 was skipped" );
 	ok(host1->next_check == now,  "host1 rescheduled ahead - normal interval" );
 	ok(svc3->next_check == now+300, "svc3 rescheduled ahead - normal interval" );





More information about the icinga-checkins mailing list