[Nagiosplug-checkins] SF.net SVN: nagiosplug:[2226] nagiosplug/trunk/NPTest.pm
dermoth at users.sourceforge.net
dermoth at users.sourceforge.net
Tue Jun 16 23:54:20 CEST 2009
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 <psychotrahe at gmx.de>
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.
More information about the Commits
mailing list