SF.net SVN: nagiosplug:[2226] nagiosplug/trunk/NPTest.pm

[email protected]
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
Revision: 2226
          http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=2226&view=rev
Author:   dermoth
Date:     2009-06-16 21:54:19 +0000 (Tue, 16 Jun 2009)

Log Message:
-----------
Switch back to "use Test" and plain prints instead of diag()

From: Matthias Eble <[email protected]>

Modified Paths:
--------------
    nagiosplug/trunk/NPTest.pm

Modified: nagiosplug/trunk/NPTest.pm
===================================================================
--- nagiosplug/trunk/NPTest.pm	2009-06-16 17:33:13 UTC (rev 2225)
+++ nagiosplug/trunk/NPTest.pm	2009-06-16 21:54:19 UTC (rev 2226)
@@ -18,7 +18,7 @@
 use IO::File;
 use Data::Dumper;
 
-use Test::More;
+use Test;
 
 use vars qw($VERSION);
 $VERSION = "1556."; # must be all one line, for MakeMaker
@@ -628,9 +628,9 @@
 	my ($pkg, $file, $line) = caller(0);
 	print "Testing: $command", $/;
 	if ($ENV{'NPTEST_DEBUG'}) {
-		diag("testCmd: Called from line $line in $file", $/);
-		diag("Output:  ", $object->output, $/);
-		diag("Return code: ", $object->return_code, $/);
+		print "testCmd: Called from line $line in $file", $/;
+		print "Output:  ", $object->output, $/;
+		print "Return code: ", $object->return_code, $/;
 	}
 
 	return $object;


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

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.