summaryrefslogtreecommitdiffstats
path: root/t/Nagios-Plugin-Range.t
diff options
context:
space:
mode:
Diffstat (limited to 't/Nagios-Plugin-Range.t')
-rw-r--r--t/Nagios-Plugin-Range.t10
1 files changed, 7 insertions, 3 deletions
diff --git a/t/Nagios-Plugin-Range.t b/t/Nagios-Plugin-Range.t
index f01518d..df5dbd5 100644
--- a/t/Nagios-Plugin-Range.t
+++ b/t/Nagios-Plugin-Range.t
@@ -2,13 +2,17 @@
2use strict; 2use strict;
3use Test::More qw(no_plan); #tests => 123; 3use Test::More qw(no_plan); #tests => 123;
4 4
5BEGIN { use_ok('Nagios::Plugin::Range') }; 5BEGIN {
6 use_ok('Nagios::Plugin::Range');
7 # Silence warnings unless TEST_VERBOSE is set
8 $SIG{__WARN__} = sub { warn $_[0] if $ENV{TEST_VERBOSE} };
9};
6 10
7diag "\nusing Nagios::Plugin::Range revision ". $Nagios::Plugin::Range::VERSION . "\n"; 11diag "\nusing Nagios::Plugin::Range revision ". $Nagios::Plugin::Range::VERSION . "\n" if $ENV{TEST_VERBOSE};
8 12
9my $r; 13my $r;
10 14
11diag "'garbage in' checks -- you should see 7 invalid range definition warnings here:"; 15diag "'garbage in' checks -- you should see 7 invalid range definition warnings here:" if $ENV{TEST_VERBOSE};
12 16
13foreach (qw( 17foreach (qw(
14 : 18 :