diff options
author | nagios <nagios@opsviewdev32.(none)> | 2010-12-03 11:56:48 +0000 |
---|---|---|
committer | nagios <nagios@opsviewdev32.(none)> | 2010-12-03 11:56:48 +0000 |
commit | 0b559b217bd08bb87bee018e715d01848e8d007f (patch) | |
tree | c8f1a29bb9eab3055d9d6f62bb27ed393500b384 /t | |
parent | 294c8d61409082424e9b4b2768cdb6135a95958d (diff) | |
download | monitoring-plugin-perl-0b559b217bd08bb87bee018e715d01848e8d007f.tar.gz |
Fixed test failure with Test::More 0.96 (RT57709)
Diffstat (limited to 't')
-rw-r--r-- | t/Nagios-Plugin-Performance.t | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/t/Nagios-Plugin-Performance.t b/t/Nagios-Plugin-Performance.t index 6904f4c..8dce336 100644 --- a/t/Nagios-Plugin-Performance.t +++ b/t/Nagios-Plugin-Performance.t | |||
@@ -202,8 +202,9 @@ cmp_ok( $p[0]->uom, "eq", "s", "uom okay"); | |||
202 | ok( defined $p[0]->threshold->critical->is_set, "Critical range has been set"); | 202 | ok( defined $p[0]->threshold->critical->is_set, "Critical range has been set"); |
203 | # The two below used to be cmp_ok, but Test::More 0.86 appears to have a problem with a stringification | 203 | # The two below used to be cmp_ok, but Test::More 0.86 appears to have a problem with a stringification |
204 | # of 0. See http://rt.cpan.org/Ticket/Display.html?id=41109 | 204 | # of 0. See http://rt.cpan.org/Ticket/Display.html?id=41109 |
205 | is( $p[0]->threshold->warning, "0", "warn okay"); | 205 | # We need to force stringification for test. See RT 57709 |
206 | is( $p[0]->threshold->critical, "0", "crit okay"); | 206 | is( $p[0]->threshold->warning."", "0", "warn okay"); |
207 | is( $p[0]->threshold->critical."", "0", "crit okay"); | ||
207 | 208 | ||
208 | @p = Nagios::Plugin::Performance->parse_perfstring("pct_used=73.7%;90;95"); | 209 | @p = Nagios::Plugin::Performance->parse_perfstring("pct_used=73.7%;90;95"); |
209 | cmp_ok( $p[0]->label, "eq", "pct_used", "label okay"); | 210 | cmp_ok( $p[0]->label, "eq", "pct_used", "label okay"); |