File: fix_port_in_use_in_test.patch

package info (click to toggle)
libhttp-server-simple-perl 0.51-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 276 kB
  • ctags: 174
  • sloc: perl: 1,754; makefile: 8
file content (17 lines) | stat: -rw-r--r-- 649 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Fix port already in use test failure
 Between the IPv4 and IPv6 tests we need to bump the port number
 to prevent the test suite failing and consequently hanging the 
 build process
Author: Daniel Lintott <daniel@serverb.co.uk>
Forwarded: https://rt.cpan.org/Ticket/Display.html?id=96086
Last-Update: 2014-05-30
--- a/t/01live.t
+++ b/t/01live.t
@@ -48,6 +48,7 @@
 my @classes = (qw(HTTP::Server::Simple SlowServer));
 for my $class (@classes) {
     run_server_tests($class, AF_INET);
+	$PORT++;
     run_server_tests($class, AF_INET6) if $RUN_IPV6;
     $PORT++; # don't reuse the port incase your bogus os doesn't release in time
 }