Subject: | Test failure on some systems |
During testing, the server defaults to listening using only IPv6 if
available, but the client uses 'localhost' to find the address, which on
some systems resolves to the IPv4 address. The attached patch causes the
server to use 'localhost' as the bind address, so the test will complete
on such systems.
Subject: | test.patch |
--- a/test.pl
+++ b/test.pl
@@ -96,7 +96,7 @@
SEARCH => \&my_search_handler,
FETCH => \&my_fetch_handler);
- $handler->launch_server("test.pl", "-1", @ARGV);
+ $handler->launch_server("test.pl", "-1", "tcp:localhost:9999", @ARGV);
} else { ## Child starts the client
sleep(1);
open(CLIENT, "| yaz-client tcp:localhost:9999 > /dev/null")