Skip Menu |

This queue is for tickets about the Test-NoWarnings CPAN distribution.

Report information
The Basics
Id: 13439
Status: resolved
Priority: 0/
Queue: Test-NoWarnings

People
Owner: Nobody in particular
Requestors: Marek.Rouchal [...] gmx.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.07
Fixed in: (no value)



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
Thanks for the report. That's been fixed in version 0.08. One of the test scripts did something that was harmless with older Test::Builders but is no longer allowed with the latest one. I should be more proactive about testing! F [MAREKR - Tue Jun 28 03:56:55 2005]: Show quoted text
> 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