With Perl 5.8.7 and the latest Test-Builder (from Test-Simple-0.60)
etc., I see the following error in "make test" with Test-NoWarnings-
0.07:
t/end.........Can't use string ("Test::Tester::Capture") as a HASH ref
while "strict refs" in use at /opt/perl_5.8.7/lib/Test/Builder.pm line
228.
t/end.........ok
1/6
t/end.........NOK 2# Failed test (t/end.t at line
12)
# got: undef
# expected: '1'
t/end.........NOK 3# Failed test (t/end.t at line
12)
# got: '1'
# expected: '0'
t/end.........NOK 4# Failed test (t/end.t at line
25)
# ''
# doesn't match '/^There were 1 warning\(s\)/'
t/end.........NOK 5# Failed test (t/end.t at line
26)
# ''
# doesn't match '/Previous test 1 'fake test'/'
t/end.........NOK 6# Failed test (t/end.t at line
27)
# ''
# doesn't match '/my special warning /s'
# Looks like you failed 5 tests of 6.
# Looks like your test died just after 6.
t/end.........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-6
Failed 5/6 tests, 16.67% okay
Seems to me as if the "exported_to" method in Test::Builder
expects an object (blessed referece), not a static class name (string).
Maybe the test does not initialize this object correctly?
Cheers,
Marek