فهرست منبع

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


git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1898 f882894a-f735-0410-b71e-b25c423dba1c
Thomas Guyot-Sionnest 18 سال پیش
والد
کامیت
9693226ceb
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      plugins/t/check_ftp.t
  2. 1 1
      plugins/t/check_tcp.t

+ 1 - 1
plugins/t/check_ftp.t

@@ -27,7 +27,7 @@ my $t;
 
 $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);

+ 1 - 1
plugins/t/check_tcp.t

@@ -30,7 +30,7 @@ my $t;
 $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