aboutsummaryrefslogtreecommitdiff
path: root/NPTest.pm
diff options
context:
space:
mode:
authorGravatar Matthias Eble <psychotrahe@gmx.de> 2009-06-16 23:51:19 +0200
committerGravatar Matthias Eble <psychotrahe@gmx.de> 2009-06-16 23:51:19 +0200
commit013f0a187f0a52edc94488ed1afbed71a6d3efd5 (patch)
treeb9f182801f37445837ee011b94fdeefbaef2b284 /NPTest.pm
parent3ea954933ce538fa366a998ae9acbb241a63293a (diff)
downloadmonitoring-plugins-013f0a187f0a52edc94488ed1afbed71a6d3efd5.tar.gz
Switch back to "use Test" and plain prints instead of diag()
Diffstat (limited to 'NPTest.pm')
-rw-r--r--NPTest.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/NPTest.pm b/NPTest.pm
index 8ea5af8c..54a535e7 100644
--- a/NPTest.pm
+++ b/NPTest.pm
@@ -18,7 +18,7 @@ use File::Basename;
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 @@ sub testCmd {
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;