[Nagiosplug-checkins] SF.net SVN: nagiosplug: [1898] nagiosplug/trunk/plugins/t

dermoth at users.sourceforge.net dermoth at users.sourceforge.net
Tue Jan 8 12:27:57 CET 2008


Revision: 1898
          http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=1898&view=rev
Author:   dermoth
Date:     2008-01-08 03:27:57 -0800 (Tue, 08 Jan 2008)

Log Message:
-----------
Fix test breakages for commit r1879: check_tcp now returns UNKNOWN with an invalid hostname on command line

Modified Paths:
--------------
    nagiosplug/trunk/plugins/t/check_ftp.t
    nagiosplug/trunk/plugins/t/check_tcp.t

Modified: nagiosplug/trunk/plugins/t/check_ftp.t
===================================================================
--- nagiosplug/trunk/plugins/t/check_ftp.t	2008-01-08 02:06:35 UTC (rev 1897)
+++ nagiosplug/trunk/plugins/t/check_ftp.t	2008-01-08 11:27:57 UTC (rev 1898)
@@ -27,7 +27,7 @@
 
 $t += checkCmd( "./check_ftp $host_tcp_ftp       -wt 300 -ct 600",       0, $successOutput );
 $t += checkCmd( "./check_ftp $host_nonresponsive -wt 0   -ct 0   -to 1", 2 );
-$t += checkCmd( "./check_ftp $hostname_invalid   -wt 0   -ct 0",         2 );
+$t += checkCmd( "./check_ftp $hostname_invalid   -wt 0   -ct 0",         3 );
 
 exit(0) if defined($Test::Harness::VERSION);
 exit($tests - $t);

Modified: nagiosplug/trunk/plugins/t/check_tcp.t
===================================================================
--- nagiosplug/trunk/plugins/t/check_tcp.t	2008-01-08 02:06:35 UTC (rev 1897)
+++ nagiosplug/trunk/plugins/t/check_tcp.t	2008-01-08 11:27:57 UTC (rev 1898)
@@ -30,7 +30,7 @@
 $t += checkCmd( "./check_tcp $host_tcp_http      -p 80 -wt 300 -ct 600",       0, $successOutput );
 $t += checkCmd( "./check_tcp $host_tcp_http      -p 81 -wt   0 -ct   0 -to 1", 2 ); # use invalid port for this test
 $t += checkCmd( "./check_tcp $host_nonresponsive -p 80 -wt   0 -ct   0 -to 1", 2 );
-$t += checkCmd( "./check_tcp $hostname_invalid   -p 80 -wt   0 -ct   0 -to 1", 2 );
+$t += checkCmd( "./check_tcp $hostname_invalid   -p 80 -wt   0 -ct   0 -to 1", 3 );
 
 # Need the \r\n to make it more standards compliant with web servers. Need the various quotes
 # so that perl doesn't interpret the \r\n and is passed onto command line correctly


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Commits mailing list