X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=NPTest.pm;h=54a535e77808b167741ba30ca744fcb3266acc5c;hb=refs%2Fheads%2Fsh%2Fcheck_pgsql;hp=cbd78c82b2ac71393bc02da41424a1db0741fd25;hpb=2e7c3ac75ac62d8e5bfd0b62d60d7b98597bb9ea;p=nagiosplug.git diff --git a/NPTest.pm b/NPTest.pm index cbd78c8..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 @@ -626,11 +626,11 @@ sub testCmd { $object->output($output); my ($pkg, $file, $line) = caller(0); - diag("Testing: $command", $/); + 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;