[Nagios-checkins] SF.net SVN: nagios:[2093] nagioscore/trunk/lib/t-utils.c

ageric at users.sourceforge.net ageric at users.sourceforge.net
Sun Aug 26 20:01:38 UTC 2012


Revision: 2093
          http://nagios.svn.sourceforge.net/nagios/?rev=2093&view=rev
Author:   ageric
Date:     2012-08-26 20:01:37 +0000 (Sun, 26 Aug 2012)
Log Message:
-----------
lib/t-utils: Always print the name of failing tests

Previously we always bailed out if we weren't verbose, leading to
us only printing the diagnostic message when tests failed. With
this patch we always print failing tests, even if we're not verbose.

Signed-off-by: Andreas Ericsson <ae at op5.se>

Modified Paths:
--------------
    nagioscore/trunk/lib/t-utils.c

Modified: nagioscore/trunk/lib/t-utils.c
===================================================================
--- nagioscore/trunk/lib/t-utils.c	2012-08-26 20:01:17 UTC (rev 2092)
+++ nagioscore/trunk/lib/t-utils.c	2012-08-26 20:01:37 UTC (rev 2093)
@@ -59,10 +59,8 @@
 {
 	passed += !!success;
 	failed += !success;
-	if (!fmt || !t_verbose)
-		return success;
 
-	if (fmt && t_verbose) {
+	if (fmt && (!success || t_verbose)) {
 		t_indent(t_depth);
 		if (success) {
 			printf("%sPASS%s ", green, reset);

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Nagios-commits mailing list