summaryrefslogtreecommitdiffstats
path: root/plugins/t/check_time.t
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2005-11-03 15:04:16 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2005-11-03 15:04:16 (GMT)
commitf278c817e584ac7ccd3bdfee3daefdbc483398b7 (patch)
treea30a777628040bb25e2f42d86e15f47c12d0f3ee /plugins/t/check_time.t
parent5537f7b0cdac98df3b9a090e13030969e404ed7d (diff)
downloadmonitoring-plugins-f278c817e584ac7ccd3bdfee3daefdbc483398b7.tar.gz
Fixing some test failures
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1270 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/t/check_time.t')
-rw-r--r--plugins/t/check_time.t8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/t/check_time.t b/plugins/t/check_time.t
index 05878dc..f7fcf95 100644
--- a/plugins/t/check_time.t
+++ b/plugins/t/check_time.t
@@ -23,14 +23,16 @@ my $hostname_invalid = getTestParameter( "hostname_invalid", "NP_HOSTNAME_IN
23 23
24my $successOutput = '/^TIME OK - [0-9]+ second time difference/'; 24my $successOutput = '/^TIME OK - [0-9]+ second time difference/';
25 25
26my %exceptions = ( 3 => "No time server present?");
27
26my $t; 28my $t;
27 29
28# standard mode 30# standard mode
29$t += checkCmd( "./check_time -H $host_udp_time -w 999999,59 -c 999999,59 -t 60", 0, $successOutput ); 31$t += checkCmd( "./check_time -H $host_udp_time -w 999999,59 -c 999999,59 -t 60", 0, $successOutput, %exceptions );
30$t += checkCmd( "./check_time -H $host_udp_time -w 999999 -W 59 -c 999999 -C 59 -t 60", 0, $successOutput ); 32$t += checkCmd( "./check_time -H $host_udp_time -w 999999 -W 59 -c 999999 -C 59 -t 60", 0, $successOutput, %exceptions );
31 33
32# reverse compatibility mode 34# reverse compatibility mode
33$t += checkCmd( "./check_time $host_udp_time -wt 59 -ct 59 -cd 999999 -wd 999999 -to 60", 0, $successOutput ); 35$t += checkCmd( "./check_time $host_udp_time -wt 59 -ct 59 -cd 999999 -wd 999999 -to 60", 0, $successOutput, %exceptions );
34 36
35# failure mode 37# failure mode
36$t += checkCmd( "./check_time -H $host_nonresponsive -t 1", 2 ); 38$t += checkCmd( "./check_time -H $host_nonresponsive -t 1", 2 );