summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 79e5b12)
raw | patch | inline | side by side (parent: 79e5b12)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Thu, 15 Sep 2005 08:39:23 +0000 (08:39 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Thu, 15 Sep 2005 08:39:23 +0000 (08:39 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1223 f882894a-f735-0410-b71e-b25c423dba1c
plugins/t/check_ping.t | patch | blob | history |
diff --git a/plugins/t/check_ping.t b/plugins/t/check_ping.t
index 49c568a6fce602cd7824e2ed9f01341510788cbb..0dba91b487bcc42fb88f88fa791b749d90bcabe8 100644 (file)
--- a/plugins/t/check_ping.t
+++ b/plugins/t/check_ping.t
use vars qw($tests);
-BEGIN {$tests = 6; plan tests => $tests}
+BEGIN {$tests = 8; plan tests => $tests}
my $successOutput = '/PING (ok|OK) - Packet loss = +[0-9]{1,2}\%, +RTA = [\.0-9]+ ms/';
my $failureOutput = '/Packet loss = +[0-9]{1,2}\%, +RTA = [\.0-9]+ ms/';
$t += checkCmd( "./check_ping $host_responsive 0 0 0 0 -p 1", 2, $failureOutput );
$t += checkCmd( "./check_ping $host_nonresponsive 0 0 0 0 -p 1 -to 1", 2 );
$t += checkCmd( "./check_ping $hostname_invalid 0 0 0 0 -p 1 -to 1", 3 );
+$t += checkCmd( "./check_ping -w 100,10% -c 200,20%" , 3 , "/You must specify a server address or host name.*/");
exit(0) if defined($Test::Harness::VERSION);
exit($tests - $t);