Re: [sprog-users] Test Errors and final touches on Sprog RPM for Fedora Core 5 Extras
Status: Alpha
Brought to you by:
grantm
From: Gavin H. <gh...@fe...> - 2005-11-15 10:43:09
|
On Tue, 15 Nov 2005 21:26:55 +1300, Grant McLean wrote > On Tue, 2005-11-15 at 08:50 +0000, Gavin Henry wrote: > > On Tue, 15 Nov 2005 12:28:58 +1300, Grant McLean wrote > > > Hi Gavin > > > > > > On Mon, 2005-11-14 at 23:59 +0000, Gavin Henry wrote: > > > > Dear Guys, > > > > > > > > This is the current specfile: > > > > > > > > http://www.perl.me.uk/downloads/modules/Sprog.spec > > > > > > > > It now has a desktop icon: > > > > > > > > http://www.perl.me.uk/downloads/modules/sprog-logo.png > > > > > > > > Is this icon ok? > > > > > > Hmmmm, it's not really ideal. I've had 'icon' on the todo list for some > > > time, but in the absence of an official icon, I just use the standard > > > gnome-run.png that ships with GNOME. > > > > I thought so. Send us one over then ;-) > > Attached. > > > > > Lastly, it's all ready to go, but now we get Test Errors: > > > > > > > > t/18_command_filter....dubious > > > > Test returned status 0 (wstat 13, 0xd) > > > > DIED. FAILED tests 15-19 > > > > Failed 5/19 tests, 73.68% okay > > > > > > Try running this command to see if it gives any more clues: > > > > > > prove -v t/18_command_filter.t > > > > > > It looks like it's dying in test number 15. That test is really > > > just a placeholder while I consider how to get better diagnostics > > > from attempting to run a command that doesn't exist. I'm not sure > > > why it's failing for you, but it's entirely non-critical so you > > > could skip it with the attached patch. > > > > Fair enough. Me neither. Just happened lately. It has worked fine before on > > this machine. Here's the verbose output: > > > > t/18_command_filter....1..19 > > ok 1 - use TestApp; > > ok 2 - use Sprog::Gear::CommandFilter; > > not ok 3 - no alerts while creating machine > > > > # Failed test (t/18_command_filter.t at line 14) > > # got: 'Unable to create a LineSink object > > # Base class package "Sprog::Mixin::InputByLine" is empty. > > # (Perhaps you need to 'use' the module which defines that package first.) > > # at t/lib/LineSink.pm line 13 > > # BEGIN failed--compilation aborted at t/lib/LineSink.pm line 16. > > # Compilation failed in require at /usr/lib/perl5/site_perl/5.8.6/Sprog.pm > > line 295. > > # > > # ' > > # expected: '' > > not ok 4 - filter gear isa Sprog::Gear::CommandFilter > > > > # Failed test (t/18_command_filter.t at line 16) > > # filter gear isn't defined > > not ok 5 - filter gear also isa Sprog::Mixin::OutputToFH > > > > # Failed test (t/18_command_filter.t at line 17) > > # filter gear also isn't defined > > not ok 6 - filter gear also isa Sprog::Mixin::InputFromFH > > > > # Failed test (t/18_command_filter.t at line 18) > > # filter gear also isn't defined > > not ok 7 - filter gear also isa Sprog::Gear > > > > # Failed test (t/18_command_filter.t at line 19) > > # filter gear also isn't defined > > Can't call method "has_input" on an undefined value at t/18_command_filter.t > > line 21. > > # Looks like you planned 19 tests but only ran 7. > > # Looks like your test died just after 7. > > dubious > > Test returned status 255 (wstat 65280, 0xff00) > > DIED. FAILED tests 3-19 > > Failed 17/19 tests, 10.53% okay > > Failed Test Stat Wstat Total Fail Failed List of Failed > > ------------------------------------------------------------------------------- > > t/18_command_filter.t 255 65280 19 29 152.63% 3-19 > > Failed 1/1 test scripts, 0.00% okay. 17/19 subtests failed, 10.53% okay. > > So now it's failing tests 3-19 whereas originally it was failing 15-19. > This time it's failing catastrophically because the InputByLine mixin > hasn't been loaded even though its explicitly mentioned by the 'use > base' in t/lib/LineSink.pm. > > It looks like there's something really basic gone wrong here. I wonder > if there might be some conflict between a version of Sprog that's > already installed and the version being tested. > > Regards > Grant That could be the case. Can I issue a make uninstall first? -- Kind Regards, Gavin Henry, Editorial Staff. FedoraNEWS.ORG (http://FedoraNEWS.ORG) |