From: Matthias Eble Date: Tue, 16 Jun 2009 21:51:19 +0000 (+0200) Subject: Switch back to "use Test" and plain prints instead of diag() X-Git-Url: https://git.tokkee.org/?p=nagiosplug.git;a=commitdiff_plain;h=013f0a187f0a52edc94488ed1afbed71a6d3efd5 Switch back to "use Test" and plain prints instead of diag() --- diff --git a/NPTest.pm b/NPTest.pm index 8ea5af8..54a535e 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;