Subject: | t/10.00-rfc4408.t fails with Net-DNS 0.68 |
The current release of Net-DNS (0.68) seems to do some domain name
sanitization that results in the test suite getting some unexpected results:
$ ./Build test
t/00.00-class-misc.t .......... ok
t/00.01-class-util.t .......... ok
t/00.02-class-request.t ....... ok
t/00.03-class-result.t ........ ok
t/00.04-class-server.t ........ ok
t/00.05-class-macrostring.t ... ok
t/00.99-class-misc.t .......... ok
64 octet domain label truncated at
/usr/lib64/perl5/vendor_perl/Net/DNS/Question.pm line 81.
# Test case 'toolonglabel' result:
# Expected: 'none'
# Got: 'fail'
# Failed test 'Test case 'toolonglabel' result'
# at t/Mail-SPF-Test-lib.pm line 91.
# Test case description: DNS labels limited to 63 chars.
# Test case 'invalid-domain-empty-label' result:
# Expected: 'permerror' or 'fail'
# Got: 'pass'
# Failed test 'Test case 'invalid-domain-empty-label' result'
# at t/Mail-SPF-Test-lib.pm line 91.
# Test case description: target-name that is a valid domain-spec per RFC
4408 but an invalid domain name per RFC 1035 (empty label) must be
treated as non-existent.
# Test case 'macro-mania-in-domain' result:
# Expected: 'pass'
# Got: 'fail'
# Failed test 'Test case 'macro-mania-in-domain' result'
# at t/Mail-SPF-Test-lib.pm line 91.
# Test case description: macro-encoded percents (%%), spaces (%_), and
URL-percent-encoded spaces (%-)
# Looks like you failed 3 tests of 344.
t/10.00-rfc4408.t .............
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/344 subtests
t/10.01-rfc4406.t ............. ok
t/90-author-pod-validation.t .. ok
Test Summary Report
-------------------
t/10.00-rfc4408.t (Wstat: 768 Tests: 344 Failed: 3)
Failed tests: 3, 57, 325
Non-zero exit status: 3
Files=10, Tests=507, 3 wallclock secs ( 0.10 usr 0.02 sys + 2.33 cusr
0.08 csys = 2.53 CPU)
Result: FAIL
Failed 1/10 test programs. 3/507 subtests failed.
Reverting Net-DNS to 0.67 makes this problem go away.