Subject: | Test failures due to hash randomisation in perl 5.17.6 |
Perl 5.17.6 randomises hash seeds, exposing an existing bug in t/base/ua.t:
# Expected: "http://example.com"
# base/ua.t line 101 is: ok($ua->proxy('http'), "http://example.com");
# Test 34 got: "http://10.10.10.2:8080" (base/ua.t at line 105)
# Expected: "http://example.com"
# base/ua.t line 105 is: ok($ua->proxy('http'), "http://example.com");
I happen to have HTTP_PROXY set to http://10.10.10.2:8080 and http_proxy unset.
The test script sets http_proxy. Which of HTTP_PROXY and http_proxy is picked up by sub
LWP::UserAgent::env_proxy is going to be random, so the test will fail half the time.